From: G. Anthony Reina <reina@nsi.edu>
To: Bill Brandt <brandtwr-pgsql@draaw.net>
To: pgsql-sql@postgreSQL.org <pgsql-sql@postgreSQL.org>
To: Bruce Momjian <maillist@candle.pha.pa.us>
Subject: Re: [SQL] Formatting the output
Date: Thu, 29 Jul 1999 11:37:25 -0700
Message-ID: <37A09F65.CCE4770A@nsi.edu> (raw)
References: <37A08915.D5B83C85@nsi.edu>
<19990729133403.A32362@draaw.net>
Bill Brandt wrote:
> Try:
>
> psql db01 -c "select tablename from pg_tables where tablename NOT LIKE '%pg%'" -t
>
> The -e makes it display the QUERY: <whatever> line... so removing it fixes that
> problem... the -t tells it not to show the column headings and such...
>
Bruce Momjian wrote:
> 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.
>
Thanks. That works fine.
-Tony
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: reina@nsi.edu, brandtwr-pgsql@draaw.net, maillist@candle.pha.pa.us
Subject: Re: [SQL] Formatting the output
In-Reply-To: <37A09F65.CCE4770A@nsi.edu>
References: <37A08915.D5B83C85@nsi.edu> <19990729133403.A32362@draaw.net> <37A09F65.CCE4770A@nsi.edu>
* 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