Re: postgres scripting

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <jweatherman91(at)alumni(dot)wfu(dot)edu>,<pgsql-admin(at)postgresql(dot)org>
Subject: Re: postgres scripting
Date: 2009-09-16 23:35:42
Message-ID: 4AB12FFE020000250002B214@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

John P Weatherman <jweatherman91(at)alumni(dot)wfu(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2009-09-17 02:38:03 Re: postgres scripting
Previous Message John P Weatherman 2009-09-16 21:26:02 postgres scripting