From: | Lubomir Petrov <lpetrov(at)sysmaster(dot)com> |
---|---|
To: | Ben Chobot <bench(at)silentmedia(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Hiding row counts in psql |
Date: | 2009-03-06 02:17:19 |
Message-ID: | 49B087AF.4080806@sysmaster.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi,
Use "\pset footer [on|off]".
test=# select 1 as "Col1";
Col1
------
1
(1 row)
test=#
test=# \pset footer
Default footer is off.
test=#
test=# select 1 as "Col1";
Col1
------
1
test=# \pset footer
Default footer is on.
test=#
test=#
test=# select 1 as "Col1";
Col1
------
1
(1 row)
test=# \pset footer off
Default footer is off.
test=#
test=#
test=# select 1 as "Col1";
Col1
------
1
test=#
test=# \pset footer on
Default footer is on.
test=#
test=#
test=# select 1 as "Col1";
Col1
------
1
(1 row)
test=#
Hope this helps.
Regards,
Lubomir Petrov
Ben Chobot wrote:
> Is there a way in psql to hide the row counts but keep the column
> headers? The man page talks about \t and --tuples-only, but both of
> those also suppress column headers.
>
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2009-03-06 02:48:13 | Re: idle users |
Previous Message | Mark Styles | 2009-03-06 02:15:08 | Re: [GENERAL] pgsql announce now on twitter |