pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sean Shanny <shannyconsulting@earthlink.net>
To: Charles Haron <charles.haron@cognitive.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: How to use psql -c?
Date: Mon, 29 Dec 2003 15:57:46 -0500
Message-ID: <3FF0954A.3010502@earthlink.net> (raw)
In-Reply-To: <BC15E14C.849%charles.haron@cognitive.com>
References: <BC15E14C.849%charles.haron@cognitive.com>

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




view thread (9+ messages)  latest in thread

Message-ID: <3FF0954A.3010502@earthlink.net>
Permalink:  ../3FF0954A.3010502@earthlink.net/
Also on:    postgresql.org/message-id/3FF0954A.3010502@earthlink.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-admin@postgresql.org
  Cc: shannyconsulting@earthlink.net, charles.haron@cognitive.com
  Subject: Re: How to use psql -c?
  In-Reply-To: <3FF0954A.3010502@earthlink.net>
  References: <BC15E14C.849%charles.haron@cognitive.com> <3FF0954A.3010502@earthlink.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