From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: psql: Refactor SendQuery() |
Date: | 2022-03-31 18:05:36 |
Message-ID: | E1nZzAu-000Bjz-Ds@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
psql: Refactor SendQuery()
This breaks out the fetch-it-all-and-print case in SendQuery() into a
separate function. This makes the code more similar to the other
cases \gdesc and run query with FETCH_COUNT, and makes SendQuery()
itself a bit smaller.
Extracted from a larger patch with more changes in this area to
follow.
Author: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Discussion: https://www.postgresql.org/message-id/flat/alpine(dot)DEB(dot)2(dot)21(dot)1904132231510(dot)8961(at)lancre
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/8910a25fef3dc4aa7e10cfcebdc784650a4d256b
Modified Files
--------------
src/bin/psql/common.c | 104 +++++++++++++++++++++++++++++++-------------------
1 file changed, 64 insertions(+), 40 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2022-03-31 18:06:29 | pgsql: In basebackup_to_shell tests, properly set up pg_hba.conf. |
Previous Message | Robert Haas | 2022-03-31 16:56:31 | Re: pgsql: Add 'basebackup_to_shell' contrib module. |