pgsql: Re-implement psql's FETCH_COUNT feature atop libpq's chunked mod

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Re-implement psql's FETCH_COUNT feature atop libpq's chunked mod
Date: 2024-04-07 00:45:33
Message-ID: E1rtGf6-000t9y-TP@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Re-implement psql's FETCH_COUNT feature atop libpq's chunked mode.

Formerly this was done with a cursor, which is problematic since
not all result-set-returning query types can be put into a cursor.
The new implementation is better integrated into other psql
features, too.

Daniel Vérité, reviewed by Laurenz Albe and myself (and whacked
around a bit by me, so any remaining bugs are my fault)

Discussion: https://postgr.es/m/CAKZiRmxsVTkO928CM+-ADvsMyePmU3L9DQCa9NwqjvLPcEe5QA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/90f5178211cd63ac16fb8c8b2fe43d53d2854da1

Modified Files
--------------
src/bin/psql/common.c | 522 ++++++++++++-------------------------
src/bin/psql/t/001_basic.pl | 6 +-
src/test/regress/expected/psql.out | 4 +-
src/test/regress/sql/psql.sql | 4 +-
4 files changed, 171 insertions(+), 365 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2024-04-07 01:49:36 pgsql: Disable parallel query in psql error-with-FETCH_COUNT test.
Previous Message Tomas Vondra 2024-04-06 23:25:50 pgsql: Change BitmapAdjustPrefetchIterator to accept BlockNumber