Received: from candle.pha.pa.us (root@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id NAA62065 for ; Thu, 29 Jul 1999 13:58:18 -0400 (EDT) (envelope-from maillist@candle.pha.pa.us) Received: (from maillist@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id NAA18701; Thu, 29 Jul 1999 13:41:54 -0400 (EDT) From: Bruce Momjian Message-Id: <199907291741.NAA18701@candle.pha.pa.us> Subject: Re: [SQL] Formatting the output In-Reply-To: <37A08915.D5B83C85@nsi.edu> from "G. Anthony Reina" at "Jul 29, 1999 10:02:13 am" To: "G. Anthony Reina" Date: Thu, 29 Jul 1999 13:41:54 -0400 (EDT) CC: "pgsql-sql@postgreSQL.org" X-Mailer: ELM [version 2.4ME+ PL56 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > 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