Re: session username in default psql prompt? - Mailing list pgsql-hackers

From jian he
Subject Re: session username in default psql prompt?
Date
Msg-id CACJufxE50n-HceRu-B9uF3qKvETtUck-mfBRN0BKSXyWPgXo7A@mail.gmail.com
Whole thread Raw
In response to Re: session username in default psql prompt?  (Jelte Fennema-Nio <postgres@jeltef.nl>)
Responses Re: session username in default psql prompt?
List pgsql-hackers
On Mon, Mar 25, 2024 at 6:32 PM Jelte Fennema-Nio <postgres@jeltef.nl> wrote:
>
> Obviously I meant to put the \n before the %:
> \set PROMPT1 '%n@%~%R\n%# '
>

transaction related information lost.

for example:
jian@src6=
# begin;
BEGIN
jian@src6=
# select 1/0;
2024-03-25 18:37:59.313 CST [15252] ERROR:  division by zero
2024-03-25 18:37:59.313 CST [15252] STATEMENT:  select 1/0;
ERROR:  division by zero
jian@src6=
# rollback ;
ROLLBACK


master behavior:
src6=# begin ;
BEGIN
src6=*# select 1/0;
2024-03-25 18:38:31.997 CST [24688] ERROR:  division by zero
2024-03-25 18:38:31.997 CST [24688] STATEMENT:  select 1/0;
ERROR:  division by zero
src6=!# rollback ;
ROLLBACK



pgsql-hackers by date:

Previous
From: shveta malik
Date:
Subject: Re: Introduce XID age and inactive timeout based replication slot invalidation
Next
From: Ashutosh Bapat
Date:
Subject: Re: DOCS: add helpful partitioning links