diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2022-10-14 19:06:26 +0200 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2022-10-14 19:06:26 +0200 |
commit | db1b931a4ee885ebd27bb5b335c1e461ccc34bbe (patch) | |
tree | ce4d749a14741125120c921a1ed5b07c64fa4a93 /src/backend/utils/adt/pgstatfuncs.c | |
parent | f13b2088fa2d4455936e65459b77698a4452f932 (diff) | |
download | postgresql-db1b931a4ee885ebd27bb5b335c1e461ccc34bbe.tar.gz postgresql-db1b931a4ee885ebd27bb5b335c1e461ccc34bbe.zip |
libpq: Reset singlerow flag correctly in pipeline mode
When a query whose results were requested in single-row mode is the last
in the queue by the time those results are being read, the single-row
flag was not being reset, because we were returning early from
pqPipelineProcessQueue. Move that stanza up so that the flag is always
reset at the end of sending that query's results.
Add a test for the situation.
Backpatch to 14.
Author: Denis Laxalde <denis.laxalde@dalibo.com>
Discussion: https://postgr.es/m/01af18c5-dacc-a8c8-07ee-aecc7650c3e8@dalibo.com
Diffstat (limited to 'src/backend/utils/adt/pgstatfuncs.c')
0 files changed, 0 insertions, 0 deletions