Fix COPY hangs.
authorTatsuo Ishii <ishii@postgresql.org>
Mon, 11 Nov 2024 11:17:28 +0000 (20:17 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Mon, 11 Nov 2024 11:17:28 +0000 (20:17 +0900)
commitab091663b09ef8c2d0a1841921597948c597444e
tree2aa053430df1a01415bc4a4cec8482788eb3de1f
parent82d7132957fadd6faf4de1a794b2974c389e0ed2
Fix COPY hangs.

During COPY IN state (i.e. COPY FROM STDIN), frontend can send Flush
or Sync messages.  According to the F/B protocol specification, they
should be ignored but Pgpool-II treated as an invalid message and this
causes COPY hung.

Discussion: https://github.com/pgpool/pgpool2/issues/79
Backpatch-through: v4.1
src/protocol/pool_proto_modules.c