On Fri, Dec 8, 2017 at 2:26 PM, Vladimir Svedov <vodevsh(at)gmail(dot)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 &&