libpq: Reset singlerow flag correctly in pipeline mode
Alvaro Herrera <alvherre@alvh.no-ip.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/libpq/fe-exec.c | modified | +6 −6 |
| src/test/modules/libpq_pipeline/libpq_pipeline.c | modified | +44 −1 |
| src/test/modules/libpq_pipeline/traces/singlerow.trace | modified | +20 −0 |
Discussion
- [PATCH] Reset single-row processing mode at end of pipeline commands queue 2 messages · 2022-10-07 → 2022-10-14