Re: postgres scripting - Mailing list pgsql-admin

From Kevin Grittner
Subject Re: postgres scripting
Date
Msg-id 4AB12FFE020000250002B214@gw.wicourts.gov
Whole thread Raw
In response to postgres scripting  (John P Weatherman <jweatherman91@alumni.wfu.edu>)
List pgsql-admin
John P Weatherman <jweatherman91@alumni.wfu.edu> wrote:

> can handle identifying the dbs and starting postgres no problem, but
I
> can't seem to find a way to pass a CTRL-D character from within a
bash
> script to the postgres executable.

Why not put the SQL in a separate file and pipe it in?
(I haven't tested that, but it seems likely to work....)

-Kevin

pgsql-admin by date:

Previous
From: John P Weatherman
Date:
Subject: postgres scripting
Next
From: Tom Lane
Date:
Subject: Re: postgres scripting