From: DalTech - Continuing Technical Education <CTE@Dal.Ca>
To: Margarita Barvinok <brita@umich.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: Running queries from scripts.
Date: Thu, 6 Jul 2000 13:16:16 -0300
Message-ID: <013c01bfe765$8304b460$5911be86@cte.Dal.Ca> (raw)
References: <Pine.SOL.4.10.10007061156260.29747-100000@tempest.gpcc.itd.umich.edu>
> It works for me, for example, this way:
> athens% psql -d template1 -c "select datname from pg_database"
Thanks, I feel a little sheepish at not trying it with quotes around the
query, but the manuals don't mention that you have to enclose the query in
quotes when you use the -c option.
-Christopher Currie
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: CTE@Dal.Ca, brita@umich.edu
Subject: Re: Running queries from scripts.
In-Reply-To: <013c01bfe765$8304b460$5911be86@cte.Dal.Ca>
References: <Pine.SOL.4.10.10007061156260.29747-100000@tempest.gpcc.itd.umich.edu> <013c01bfe765$8304b460$5911be86@cte.Dal.Ca>
* 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