From: Bruce Momjian <maillist@candle.pha.pa.us>
To: G. Anthony Reina <reina@nsi.edu>
Cc: pgsql-sql@postgreSQL.org <pgsql-sql@postgreSQL.org>
Subject: Re: [SQL] Formatting the output
Date: Thu, 29 Jul 1999 13:41:54 -0400 (EDT)
Message-ID: <199907291741.NAA18701@candle.pha.pa.us> (raw)
In-Reply-To: <37A08915.D5B83C85@nsi.edu>
> Is there a way that I can supress the column heading and the "(# rows)"
> which come before and after the following psql command:
>
> psql -e db01 -c "select tablename from pg_tables where tablename NOT
> LIKE 'pg%'"
How about psql -qt:
#$ sql -qt test
select * from pg_language;
internal|f |f | 0|n/a
lisp |f |f | 0|/usr/ucb/liszt
C |f |f | 0|/bin/cc
sql |f |f | 0|postgres
The manual page says -q turns off row count, but -t does. I will fix
that now.
--
Bruce Momjian | http://www.op.net/~candle
maillist@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: maillist@candle.pha.pa.us, reina@nsi.edu
Subject: Re: [SQL] Formatting the output
In-Reply-To: <199907291741.NAA18701@candle.pha.pa.us>
References: <37A08915.D5B83C85@nsi.edu> <199907291741.NAA18701@candle.pha.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox