postgresql/src/bin/psql
Tom Lane 928311a463 Clean up weird corner cases in lexing of psql meta-command arguments.
These changes allow backtick command evaluation and psql variable
interpolation to happen on substrings of a single meta-command argument.
Formerly, no such evaluations happened at all if the backtick or colon
wasn't the first character of the argument, and we considered an argument
completed as soon as we'd processed one backtick, variable reference, or
quoted substring.  A string like 'FOO'BAR was thus taken as two arguments
not one, not exactly what one would expect.  In the new coding, an argument
is considered terminated only by unquoted whitespace or backslash.

Also, clean up a bunch of omissions, infelicities and outright errors in
the psql documentation of variables and metacommand argument syntax.
2011-08-26 13:53:11 -04:00
..
po Translation updates 2011-08-17 14:07:46 +03:00
.gitignore
command.c Clean up weird corner cases in lexing of psql meta-command arguments. 2011-08-26 13:53:11 -04:00
command.h Add \ir command to psql. 2011-07-06 11:45:13 -04:00
common.c Add missing newlines at end of error messages 2011-07-26 23:23:18 +03:00
common.h
copy.c Fix psql's counting of script file line numbers during COPY. 2011-07-05 12:04:40 -04:00
copy.h
create_help.pl
describe.c Change format of SQL/MED generic options in psql backslash commands. 2011-08-25 12:47:30 -04:00
describe.h Teach psql to display the comments on conversions and domains. 2011-08-08 12:26:13 -04:00
help.c Change psql's \dd command to do something more useful. 2011-08-11 11:16:29 -04:00
help.h
input.c
input.h
large_obj.c
large_obj.h
mainloop.c
mainloop.h
Makefile Add makefile rules to check for backtracking in backend and psql lexers. 2011-08-25 14:44:17 -04:00
mbprint.c
mbprint.h
nls.mk Add the possibility to pass --flag arguments to xgettext calls 2011-06-27 00:37:21 +03:00
print.c
print.h
prompt.c
prompt.h
psqlrc.sample
psqlscan.h Clean up weird corner cases in lexing of psql meta-command arguments. 2011-08-26 13:53:11 -04:00
psqlscan.l Clean up weird corner cases in lexing of psql meta-command arguments. 2011-08-26 13:53:11 -04:00
settings.h Change EDITOR_LINENUMBER_SWITCH to an environment variable 2011-07-24 00:25:29 +03:00
startup.c Add \ir command to psql. 2011-07-06 11:45:13 -04:00
stringutils.c
stringutils.h
tab-complete.c Add \ir command to psql. 2011-07-06 11:45:13 -04:00
tab-complete.h
variables.c Support non-ASCII letters in psql variable names. 2011-08-26 13:53:09 -04:00
variables.h Support non-ASCII letters in psql variable names. 2011-08-26 13:53:09 -04:00