pgsql: libpq: Add service name to PGconn and PQservice()

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: libpq: Add service name to PGconn and PQservice()
Дата
Msg-id E1tNn1U-00097E-U4@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления: