Allow reset queries to run even if extended queries do not end.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 20 Mar 2024 22:31:29 +0000 (07:31 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Thu, 21 Mar 2024 00:32:20 +0000 (09:32 +0900)
commit82e962215d229cfbb1abf6013a52bb476255ef6c
tree76fcd6ce590943ae351990e3be35781e6d8c9e17
parentcb39accc969617837c0eb61b60335971c6d1994f
Allow reset queries to run even if extended queries do not end.

Commit 240c668d "Guard against inappropriate protocol data." caused
reset queries fail if extended query messages do not end. This commit
fix that by checking whether we are running reset queries in
SimpleQuery(). Also add the test case for this.
src/protocol/pool_proto_modules.c
src/test/regression/tests/082.guard_against_bad_protocol/pgproto2.data [new file with mode: 0644]
src/test/regression/tests/082.guard_against_bad_protocol/test.sh