• Tom Lane's avatar
    Clean up weird corner cases in lexing of psql meta-command arguments. · 928311a4
    Tom Lane authored
    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.
    928311a4
command.c 57.7 KB