Re: psql batch file question - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: psql batch file question
Date
Msg-id 20071211090146.78a15ce2@commandprompt.com
Whole thread Raw
In response to psql batch file question  ("Matt Doughty" <matt.doughty@geograma.com>)
List pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 11 Dec 2007 17:50:14 +0100
"Matt Doughty" <matt.doughty@geograma.com> wrote:

> Hi List,
> 
>  
> 
> I'm trying to write a batch file that executes a query in PostgreSQL.
> Depending on the output of the query, the batch file does one of two
> things, jumps to a line that has a command to export a table from
> PostgreSQL, or calls another batch file, which copies some files.

Use perl, python, mono/c#, java, pl/sh ... you have a wealth of various
easy to use APIs :)

Joshua D. Drake


- -- 
The PostgreSQL Company: Since 1997, http://www.commandprompt.com/ 
Sales/Support: +1.503.667.4564   24x7/Emergency: +1.800.492.2240
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
SELECT 'Training', 'Consulting' FROM vendor WHERE name = 'CMD'


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHXsJ6ATb/zqfZUUQRAoooAJ9Um39yEM803oPdz99FR9cl7p14dACfTJbN
xEsrGGiRJXANHKbEpesD8o4=
=zuI9
-----END PGP SIGNATURE-----

pgsql-general by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: if exists...does it exists for insert statments?
Next
From: "Gregory Williamson"
Date:
Subject: Re: Hijack!