From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: psql: Add more information about service name |
Date: | 2024-12-18 06:17:13 |
Message-ID: | E1tNnMv-0009OZ-EG@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
psql: Add more information about service name
This commit adds support for the following items in psql, able to show a
service name, when available:
- Variable SERVICE.
- Substitution %s in PROMPT{1,2,3}.
This relies on 4b99fed7541e, that has made the service name available in
PGconn for libpq.
Author: Michael Banck
Reviewed-by: Greg Sabino Mullane
Discussion: https://postgr.es/m/6723c612.050a0220.1567f4.b94a@mx.google.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/477728b5d6fa16461b81cd22b0568fec1eab97ac
Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml | 14 ++++++++++++++
src/bin/psql/command.c | 2 ++
src/bin/psql/prompt.c | 6 ++++++
3 files changed, 22 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2024-12-18 07:57:19 | pgsql: seg: pure parser and reentrant scanner |
Previous Message | Michael Paquier | 2024-12-18 05:55:05 | pgsql: libpq: Add service name to PGconn and PQservice() |