Greg <grigorey@yahoo.co.uk> writes:
> So question is after I recive AuthenticationOk, do I need to wait for
> ReadyForQuery message from the database
Yes. You should have gotten it --- the backend is designed to coalesce
those messages into a single network packet, so as to avoid extra
network traffic. I wonder whether your code is failing to notice
additional logical messages arriving in the same bufferload.
regards, tom lane