public inbox for [email protected]
help / color / mirror / Atom feedFrom: Kirk Wolak <[email protected]>
To: Jim Jones <[email protected]>
Cc: PostgreSQL Hackers <[email protected]>
Subject: Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has)
Date: Wed, 1 Mar 2023 16:30:45 -0500
Message-ID: <CACLU5mRLuRebk4ZF8G4d_WyDpqdvUq0U4CwvVVjCd7s-fmB6pg@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CACLU5mSxmFEY4TKu4d62xWkskxai+Va8zz__3NkNhWrJzpnaPA@mail.gmail.com>
<[email protected]>
<CACLU5mRjbhn64QjVf0_1RcxN3=TNdUYZwPDV3VuQ2R_Qzwn2pw@mail.gmail.com>
<[email protected]>
On Wed, Mar 1, 2023 at 11:55 AM Jim Jones <[email protected]> wrote:
> On 01.03.23 17:13, Kirk Wolak wrote:
>
> Thanks, corrected, and confirmed Unix line endings.
> FWIW, the simplest way to test it is with this command (I usually get it
> wrong on the first guess)
>
> \set PROMPT1 %T ' ' :PROMPT1
>
> Kirk
>
> Nice. The patch applies clean and the cfbots seem much happier now - all
> passed.
>
> 17:23:19 postgres=# SELECT now();
> now
> -------------------------------
> 2023-03-01 17:23:19.807339+01
> (1 row)
>
> The docs render also just fine. I'm now wondering if HH24:MI:SS should be
> formatted with, e.g. using <literal>
>
> "The current time on the client in <literal>HH24:MI:SS</literal> format."
>
> But that I'll leave to the docs experts to judge :)
>
> Best, Jim
>
Thanks Jim.
I hope one of the Docs experts chime in. It's easy enough to fix. Just
not sure if it's required.
What a great learning experience!
view thread (2+ 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]
Subject: Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has)
In-Reply-To: <CACLU5mRLuRebk4ZF8G4d_WyDpqdvUq0U4CwvVVjCd7s-fmB6pg@mail.gmail.com>
* 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