pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: psql: Refactor SendQuery()
Date: Thu, 31 Mar 2022 18:05:36 +0000
Message-ID: <E1nZzAu-000Bjz-Ds@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1nZzAu-000Bjz-Ds@gemulon.postgresql.org>
Permalink:  ../E1nZzAu-000Bjz-Ds@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nZzAu-000Bjz-Ds@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: psql: Refactor SendQuery()
  In-Reply-To: <E1nZzAu-000Bjz-Ds@gemulon.postgresql.org>
  References: <E1nZzAu-000Bjz-Ds@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox