Re: scripting & psql issues - Mailing list pgsql-general

From Bob Parkinson
Subject Re: scripting & psql issues
Date
Msg-id s1238356.089@ccw0m1.nottingham.ac.uk
Whole thread Raw
In response to scripting & psql issues  (Dino Vliet <dino_vliet@yahoo.com>)
Responses Re: scripting & psql issues  (Oliver Elphick <olly@lfix.co.uk>)
List pgsql-general
I've started to use the "here document" idea a lot when writing scripts to do tasks.

#!/usr/local/bin/bash

psql -d myDB <<EOSQL

select foo ....
update bar;
delete from ...

EOSQL






Bob



This message has been scanned but we cannot guarantee that it and any
attachments are free from viruses or other damaging content: you are
advised to perform your own checks.  Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


pgsql-general by date:

Previous
From: Gaetano Mendola
Date:
Subject: Re: (S)RPMS for 7.4.4 released.
Next
From: Marcel Boscher
Date:
Subject: Installing FullTextSearchTool tsearch2