Re: [ADMIN] postgres scripting

2009-09-16 Thread Tom Lane
John P Weatherman writes: > I can't seem to find a way to pass a CTRL-D character from within a bash > script to the postgres executable. Control-D is just a way to signal EOF from the keyboard. If you're scripting, reaching the end of the script input does the same thing.

Re: [ADMIN] postgres scripting

2009-09-16 Thread Kevin Grittner
John P Weatherman 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