Prevent evaluation of backticks while discarding unwanted arguments

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 1553be4a0bdff56214902a26fa62f0c09be15f6b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-12-19T19:39:47Z
Releases: 8.0.0
Prevent evaluation of backticks while discarding unwanted arguments
after an unknown or failed psql backslash command, and also while
discarding "extra" arguments of a putatively valid backslash command.
In the case of an unknown/failed command, make sure we discard the
whole rest of the line, rather than trying to resume at the next
backslash.  Per discussion with Thomer Gil.

Files

PathChange+/−
src/bin/psql/command.c modified +16 −6
src/bin/psql/psqlscan.h modified +3 −2
src/bin/psql/psqlscan.l modified +27 −13