Re: [SQL] Formatting the output

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: "G(dot) Anthony Reina" <reina(at)nsi(dot)edu>
Cc: "pgsql-sql(at)postgreSQL(dot)org" <pgsql-sql(at)postgreSQL(dot)org>
Subject: Re: [SQL] Formatting the output
Date: 1999-07-29 17:41:54
Message-ID: 199907291741.NAA18701@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

> 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-07-29 17:43:42 Re: [SQL] Formatting the output
Previous Message Bill Brandt 1999-07-29 17:34:03 Re: [SQL] Formatting the output

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 1999-07-29 17:43:42 Re: [SQL] Formatting the output
Previous Message Bill Brandt 1999-07-29 17:34:03 Re: [SQL] Formatting the output