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:28:01 +0000 (20:28 +0900)
commite99a70444166b210daa7bb9e8b3ba09144cec0fd
treeffd0fdf768e2e2359a10c2b3e1b09cd08c75a92f
parenta34244bdb96734f1c3d6f39aaca160c3406cd4c4
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