Re: Enhancement to psql command, feedback. - Mailing list pgsql-general

From David G. Johnston
Subject Re: Enhancement to psql command, feedback.
Date
Msg-id CAKFQuwaxgcBt=Zb8C+JVPawJS+iGkWPw+90LUACmgGczm2Mx0g@mail.gmail.com
Whole thread Raw
In response to Re: Enhancement to psql command, feedback.  (John McKown <john.archie.mckown@gmail.com>)
List pgsql-general
On Wed, May 9, 2018 at 7:17 AM, John McKown <john.archie.mckown@gmail.com> wrote:

However, in the second case, the "magic" first line causes psql, at present, to report an error and abort. This is why I'd like to modify how the file referenced via the -f argument is processed. That is, the first line of any file referenced & executed via the -f argument will be ignored if and only if it starts with a shebang (#!). If the first line of the file does not start with a shebang, it is processed normally as are all subsequent lines.


​Don't forget the \i and \ir meta commands.

David J.

pgsql-general by date:

Previous
From: John McKown
Date:
Subject: Re: Enhancement to psql command, feedback.
Next
From: Tom Lane
Date:
Subject: Re: Enhancement to psql command, feedback.