Hi Karsten:

On Fri, Jul 18, 2014 at 9:47 PM, Karsten Hilbert
<karsten.hilb...@gmx.net> wrote:
> Nice solution but that won't work on Windows ...

If "psql -f kk.psql" does, it works enough. ./kk.psql would not
notmally work on windows. It's been 12 years since I worked on it, but
IIRC although windows ( the OS ) recognized / as a path separator CMD
did not, so even if you set psql as a handler for .psql files it would
not work ( and, IIRC again, the customary way to exec that kind of
files would be 'kk', i.e. 'jj' not '.\jj.md' for a CMD file as windows
used to consider the CWD of the current drive before the PATH ). And
if you are using windows in POSIX mode with a bash shell it would
probably work.

Note the OP was not asking for a windows+unix shell script, but for a
psql + unix shell.

Francisco Olarte.


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to