Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has)

Поиск
Список
Период
Сортировка
От Jim Jones
Тема Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has)
Дата
Msg-id f6411037-22bb-6dd2-b631-cef8ad2276fa@uni-muenster.de
обсуждение исходный текст
Ответ на Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has)  (Kirk Wolak <wolakk@gmail.com>)
Ответы Re: Proposal: %T Prompt parameter for psql for current time (like Oracle has)  (Kirk Wolak <wolakk@gmail.com>)
Список pgsql-hackers
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

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: Add LZ4 compression in pg_dump
Следующее
От: Tom Lane
Дата:
Сообщение: Re: The order of queues in row lock is changed (not FIFO)