pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: libpq: Add service name to PGconn and PQservice()
Date: Wed, 18 Dec 2024 05:55:05 +0000
Message-ID: <E1tNn1U-00097E-U4@gemulon.postgresql.org> (raw)

libpq: Add service name to PGconn and PQservice()

This commit adds one field to PGconn for the database service name (if
any), with PQservice() as routine to retrieve it.  Like the other
routines of this area, NULL is returned as result if the connection is
NULL.

A follow-up patch will make use of this feature to be able to display
the service name in the psql prompt.

Author: Michael Banck
Reviewed-by: Greg Sabino Mullane
Discusion: https://postgr.es/m/6723c612.050a0220.1567f4.b94a@mx.google.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4b99fed7541e330b669fe488a274c0c69490391c

Modified Files
--------------
doc/src/sgml/libpq.sgml           | 20 ++++++++++++++++++++
src/interfaces/libpq/exports.txt  |  1 +
src/interfaces/libpq/fe-connect.c | 11 ++++++++++-
src/interfaces/libpq/libpq-fe.h   |  1 +
src/interfaces/libpq/libpq-int.h  |  1 +
5 files changed, 33 insertions(+), 1 deletion(-)



Message-ID: <E1tNn1U-00097E-U4@gemulon.postgresql.org>
Permalink:  ../E1tNn1U-00097E-U4@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tNn1U-00097E-U4@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: libpq: Add service name to PGconn and PQservice()
  In-Reply-To: <E1tNn1U-00097E-U4@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