Re: proposal: alternative psql commands quit and exit

Поиск
Список
Период
Сортировка
От Everaldo Canuto
Тема Re: proposal: alternative psql commands quit and exit
Дата
Msg-id CACYgWU=Ee77PGqUseMAnDWMFaewwigteUya4tozwEb3i3X9c+w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: proposal: alternative psql commands quit and exit  (Vladimir Svedov <vodevsh@gmail.com>)
Список pgsql-hackers

On Fri, Dec 8, 2017 at 2:26 PM, Vladimir Svedov <vodevsh@gmail.com> wrote:
I wonder if exit; to terminate loop be confused with exit psql in case of bad syntax. then instead of reporting error in plpgsql it would just silently exit?..

I just tested it and works as expected. Second line of patch takes care of it:

   if (pset.cur_cmd_interactive && query_buf->len == 0 &&


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Vladimir Svedov
Дата:
Сообщение: Re: proposal: alternative psql commands quit and exit
Следующее
От: Oliver Ford
Дата:
Сообщение: Re: proposal: alternative psql commands quit and exit