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