From: | Michael Banck <mbanck(at)gmx(dot)net> |
---|---|
To: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | [PATCH] Add support for displaying database service in psql prompt |
Date: | 2024-10-31 18:01:54 |
Message-ID: | 6723c612.050a0220.1567f4.b94a@mx.google.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
I think it might be useful to sometimes display the database service
(i.e. what is defined in ~/.pg_service.conf and used via psql
service=foo) in the psql prompt, e.g. if you have 'test' and 'prod'
services, but both have the same database name. This was also suggested
to me during a recent customer training.
I chose the '%s' tag for it. I had to add the service to PGConn as
PQservice (first patch) to libpq and then use it in psql in the second
patch.
Michael
Attachment | Content-Type | Size |
---|---|---|
v1-0001-Add-PQservice-to-PGConn.patch | text/x-diff | 2.8 KB |
v1-0002-Add-support-for-database-service-to-psql-prompt.patch | text/x-diff | 2.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Andrey M. Borodin | 2024-10-31 18:05:43 | Re: WIP: parallel GiST index builds |
Previous Message | Nazir Bilal Yavuz | 2024-10-31 17:58:18 | Re: meson and check-tests |