pgsql: Assert(PqCommReadingMsg) in pq_peekbyte(). - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Assert(PqCommReadingMsg) in pq_peekbyte().
Date
Msg-id E1YJxFy-00036F-3M@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(+)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: Check DCH_MAX_ITEM_SIZ limits with <=, not <.
Next
From: Fujii Masao
Date:
Subject: pgsql: Move pg_lzcompress.c to src/common.