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: Erik Rijkers <er@xs4all.nl>, Tom Lane <tgl@sss.pgh.pa.us>,
Jim Nasby <Jim.Nasby@bluetreble.com>,
Daniel Verite <daniel@manitou-mail.org>,
PostgreSQL <pgsql-hackers@postgresql.org>,
pgsql-hackers-owner@postgresql.org
Date: 2017-02-03T16:38:30Z
Lists: pgsql-hackers
> I could bulk up the error message on if/elif like such: [...] Looks ok to me. > Can anyone think of a reason why Ctrl-C would be a bad idea? If not I'll > start looking into it, as I'm not presently aware of what it is used for. Not me. Wikipedia, which holds all the knowledge in the universe, says: "In many command-line interface environments, control-C is used to abort the current task and regain user control." I agree that it should do that. -- 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