pgsql: psql: Refactor SendQuery() - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: psql: Refactor SendQuery()
Date
Msg-id E1nZzAu-000Bjz-Ds@gemulon.postgresql.org
Whole thread Raw
List 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@cri.ensmp.fr>
Discussion: https://www.postgresql.org/message-id/flat/alpine.DEB.2.21.1904132231510.8961@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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Make PostgreSQL::Test::Cluster compatible with all live branches
Next
From: Robert Haas
Date:
Subject: pgsql: In basebackup_to_shell tests, properly set up pg_hba.conf.