From: | Pavel Luzanov <p(dot)luzanov(at)postgrespro(dot)ru> |
---|---|
To: | Marc Millas <marc(dot)millas(at)mokadb(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: psql meta command |
Date: | 2025-04-10 19:03:19 |
Message-ID: | 2bb947f2-fb20-4c9b-b71b-db2eab372f96@postgrespro.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 10.04.2025 15:29, Marc Millas wrote:
> on a customer postgres db, using psql, if I post \ to initiate, for
> exemple \x
> that psql immediately exits.
> somewhat boring as it blocks all psql meta commands.
> Is there a way to get the extended display without posting a \ ?
You can enable extended output when starting psql:
$ psql -x -c 'select 1,2,3'
-[ RECORD 1 ]
?column? | 1
?column? | 2
?column? | 3
Also, not sure but you can try hide \ in psql variable:
$ psql --set expanded_mode='\x'
psql (18devel)
Type "help" for help.
postgres(at)demo(18.0)=# :expanded_mode
Expanded display is on.
postgres(at)demo(18.0)=# select 1,2,3;
-[ RECORD 1 ]
?column? | 1
?column? | 2
?column? | 3
--
Pavel Luzanov
Postgres Professional:https://postgrespro.com
From | Date | Subject | |
---|---|---|---|
Next Message | Christoph Moench-Tegeder | 2025-04-10 22:41:24 | Re: psql meta command |
Previous Message | Tom Lane | 2025-04-10 17:45:03 | Re: Meson and Numa: C header not found |