Re: \if, \elseif, \else, \endif (was Re: PSQL commands: \quit_if, \quit_unless)
Fabien COELHO <coelho@cri.ensmp.fr>
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Corey Huinker <corey.huinker@gmail.com>
Cc: Daniel Verite <daniel@manitou-mail.org>, Erik Rijkers <er@xs4all.nl>,
Tom Lane <tgl@sss.pgh.pa.us>, Jim Nasby <Jim.Nasby@bluetreble.com>,
PostgreSQL <pgsql-hackers@postgresql.org>,
pgsql-hackers-owner@postgresql.org
Date: 2017-02-07T21:06:27Z
Lists: pgsql-hackers
> This was my previous understanding of ON_ERROR_STOP. Somewhere in the > course of developing this patch I lost that. Glad to have it back. > > The only changes I made were to invalid booleans on if/elif, and the final > branch balancing check won't set status to EXIT_USER unless it's > non-interactive and ON_ERROR_STOP = on. About v10: Patch applies, make check ok, psql tap test ok. Html doc generation ok. Everything looks ok to me. Interactive tests behave as expected, especially ctrl-C and with on_error_stop=1. ISTM that everything has been addressed. I've switched the patch to "Ready for Committers", let's what happens on their side... -- Fabien.
Commits
-
Support \if ... \elif ... \else ... \endif in psql scripting.
- e984ef5861df 10.0 landed
-
Add a "void *" passthrough pointer for psqlscan.l's callback functions.
- 895e36bb3f36 10.0 landed