pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bill Brandt <brandtwr-pgsql@draaw.net>
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:34:03 -0400
Message-ID: <19990729133403.A32362@draaw.net> (raw)
In-Reply-To: <37A08915.D5B83C85@nsi.edu>
References: <37A08915.D5B83C85@nsi.edu>

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...

Bill

On Thu, Jul 29, 1999 at 10:02:13AM -0700, G. Anthony Reina wrote:
>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%'"
>
>
>The current output is:
>
>tablename
>=======
>table1
>table2
>table3
>table4
>(4 rows)
>
>What I'd like to get is simply:
>
>table1
>table2
>table3
>table4
>
>
>Thanks.
>-Tony
>
>
>

-- 
Liam

Bill Brandt                                   
brandtwr@draaw.net                              http://www.draaw.net/



view thread (7+ messages)  latest in thread

Message-ID: <19990729133403.A32362@draaw.net>
Permalink:  ../19990729133403.A32362@draaw.net/
Also on:    postgresql.org/message-id/19990729133403.A32362@draaw.net

 · 

reply

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: brandtwr-pgsql@draaw.net, reina@nsi.edu
  Subject: Re: [SQL] Formatting the output
  In-Reply-To: <19990729133403.A32362@draaw.net>
  References: <37A08915.D5B83C85@nsi.edu> <19990729133403.A32362@draaw.net>

* 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