Do not send the new protocol message to non-XL client.
authorPavan Deolasee <pavan.deolasee@gmail.com>
Mon, 9 Apr 2018 11:35:13 +0000 (17:05 +0530)
committerPavan Deolasee <pavan.deolasee@gmail.com>
Tue, 17 Apr 2018 05:10:03 +0000 (10:40 +0530)
commit34d7aed54ac58544aa5f4acf3e0909ec09c3a982
tree7475e8f76402f56e9b37523c8eee1fb814bb5ec4
parente3b5d21fa766fb5c480cddff065635a9ece6cddf
Do not send the new protocol message to non-XL client.

The new message 'W' to report waited-for XIDs must not be sent to a non-XL
client since it's not capable of handling that and might just cause unpleasant
problems. In fact, we should change 'W' to something else since standard libpq
understands that message and hangs forever expecting more data. With a new
protocol message, it would have failed, thus providing a more user friend
error. But postponing that for now since we should think through implications
of protocol change carefully before doing that.
src/backend/access/transam/xact.c