| From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
|---|---|
| To: | John McKown <john(dot)archie(dot)mckown(at)gmail(dot)com> |
| Cc: | Ron <ronljohnsonjr(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Enhancement to psql command, feedback. |
| Date: | 2018-05-09 14:25:35 |
| Message-ID: | CAKFQuwaxgcBt=Zb8C+JVPawJS+iGkWPw+90LUACmgGczm2Mx0g@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Wed, May 9, 2018 at 7:17 AM, John McKown <john(dot)archie(dot)mckown(at)gmail(dot)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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2018-05-09 14:30:06 | Re: Enhancement to psql command, feedback. |
| Previous Message | John McKown | 2018-05-09 14:18:06 | Re: Enhancement to psql command, feedback. |