Re: proposal: alternative psql commands quit and exit - Mailing list pgsql-hackers

From Everaldo Canuto
Subject Re: proposal: alternative psql commands quit and exit
Date
Msg-id CACYgWU=Ee77PGqUseMAnDWMFaewwigteUya4tozwEb3i3X9c+w@mail.gmail.com
Whole thread Raw
In response to Re: proposal: alternative psql commands quit and exit  (Vladimir Svedov <vodevsh@gmail.com>)
List 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 by date:

Previous
From: Vladimir Svedov
Date:
Subject: Re: proposal: alternative psql commands quit and exit
Next
From: Oliver Ford
Date:
Subject: Re: proposal: alternative psql commands quit and exit