Thread: pgsql: Assert(PqCommReadingMsg) in pq_peekbyte().

pgsql: Assert(PqCommReadingMsg) in pq_peekbyte().

From
Noah Misch
Date:
Assert(PqCommReadingMsg) in pq_peekbyte().

Interrupting pq_recvbuf() can break protocol sync, so its callers all
deserve this assertion.  The one pq_peekbyte() caller suffices already.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a7a4adcf8d1e5a34a15ad86aee7d6aa0b8c15d43

Modified Files
--------------
src/backend/libpq/pqcomm.c |    2 ++
1 file changed, 2 insertions(+)