Re: Enhancement to psql command, feedback.

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Enhancement to psql command, feedback.
Дата
Msg-id CAKFQuwaxgcBt=Zb8C+JVPawJS+iGkWPw+90LUACmgGczm2Mx0g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Enhancement to psql command, feedback.  (John McKown <john.archie.mckown@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: John McKown
Дата:
Сообщение: Re: Enhancement to psql command, feedback.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Enhancement to psql command, feedback.