public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Kirk Wolak <[email protected]>
Cc: PostgreSQL Hackers <[email protected]>
Cc: Pavel Stehule <[email protected]>
Cc: [email protected]
Cc: Laurenz Albe <[email protected]>
Cc: [email protected]
Subject: Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has)
Date: Wed, 22 Feb 2023 12:55:25 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <CACLU5mSRwHr_8z=enMj-nXF1tmC7+Jn5heZQNiKuLyxYUtL2fg@mail.gmail.com>
References: <CACLU5mSRwHr_8z=enMj-nXF1tmC7+Jn5heZQNiKuLyxYUtL2fg@mail.gmail.com>
Kirk Wolak <[email protected]> writes:
> Proposal: Simply add the %T (PROMPT variable) to output the current time
> (HH24:MI:SS) into the prompt.
I'm not really convinced that %`date` isn't a usable solution for this,
especially since it seems like a very niche requirement. The next
person who wants it might well have a different desire than you
for exactly what gets shown. The output of date can be customized,
but a hard-wired prompt.c feature not so much.
On the whole I'd rather not eat more of the limited namespace for
psql prompt codes for this.
regards, tom lane
view thread (14+ messages) latest in thread
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: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has)
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox