Re: How to use psql -c?

From: Sean Shanny <shannyconsulting(at)earthlink(dot)net>
To: Charles Haron <charles(dot)haron(at)cognitive(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: How to use psql -c?
Date: 2003-12-29 20:57:46
Message-ID: 3FF0954A.3010502@earthlink.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

from the command prompt:

psql -U password -d database -c "select tablename from pg_stats ;"

--sean

Charles Haron wrote:

>Hello,
>
>Can someone give me an example of how to use the -c option of psql? I can't
>seem to get it to work.
>
>Thanks,
>Chuck
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
>
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Fuhr 2003-12-29 21:06:13 Re: How to use psql -c?
Previous Message Anjan Dave 2003-12-29 20:54:21 Re: How to use psql -c?