Re: session username in default psql prompt?

From: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Robert Haas <robertmhaas(at)gmail(dot)com>, Kori Lane <kori(dot)lane(at)enterprisedb(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: session username in default psql prompt?
Date: 2024-03-25 10:32:29
Message-ID: CAGECzQTBBvbDn+CL+VvyO8FUBKAnvs=G3xKGuUQ2myq9TV2umw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 25 Mar 2024 at 09:30, Jelte Fennema-Nio <postgres(at)jeltef(dot)nl> wrote:
> \set PROMPT1 '%n(at)%~%R%\n# '

Obviously I meant to put the \n before the %:
\set PROMPT1 '%n(at)%~%R\n%# '

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Aleksander Alekseev 2024-03-25 10:38:55 Re: MIN/MAX functions for a record
Previous Message Amit Langote 2024-03-25 10:31:37 Re: Memory consumed by child SpecialJoinInfo in partitionwise join planning