From 477728b5d6fa16461b81cd22b0568fec1eab97ac Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Wed, 18 Dec 2024 15:16:12 +0900 Subject: 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 --- doc/src/sgml/ref/psql-ref.sgml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index e42073ed748..72f3347e53d 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -4380,6 +4380,15 @@ bar + + SERVICE + + + The service name, if applicable. + + + + SHELL_ERROR @@ -4674,6 +4683,11 @@ testdb=> INSERT INTO my_table VALUES (:'content'); + + %s + The name of the service. + + %/ The name of the current database. -- cgit v1.2.3