Re: psql scripting tutorials - Mailing list pgsql-general

From Scott Marlowe
Subject Re: psql scripting tutorials
Date
Msg-id dcc563d10809101247i68fdd130tef2536c86a5d362f@mail.gmail.com
Whole thread Raw
In response to Re: psql scripting tutorials  (Artacus <artacus@comcast.net>)
Responses Re: psql scripting tutorials  (Artacus <artacus@comcast.net>)
List pgsql-general
On Wed, Sep 10, 2008 at 12:46 AM, Artacus <artacus@comcast.net> wrote:
> Artacus wrote:
>>
>> I'd like to learn a little more about writing psql scripts does anyone
>> know of any resources outside of the manual?
>
> Ok then. Does anyone have any tips or best practices for scripting psql?
>
> I'll probably write some bash scripts to pull csv files over then script
> psql to do a COPY into an import schema then run a pl/pgsql procedure, er
> function, to do all ETL.

This sounds a lot like what I did in my last job using bash for most
things, and php for the more complicated stuff.  Wrote a simple oracle
to pgsql table replicator in php that worked pretty well.

pgsql-general by date:

Previous
From: Zdenek Kotala
Date:
Subject: Re: 64-bit Compile Failure on Solaris 10 with OpenSSL
Next
From: Ben
Date:
Subject: abusing plpgsql array variables