Re: Enhancement to psql command, feedback.
David G. Johnston <david.g.johnston@gmail.com>
From: "David G. Johnston" <david.g.johnston@gmail.com>
To: John McKown <john.archie.mckown@gmail.com>
Cc: Ron <ronljohnsonjr@gmail.com>, "pgsql-generallists.postgresql.org" <pgsql-general@lists.postgresql.org>
Date: 2018-05-09T14:25:35Z
Lists: 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.