A comment about control flow and variables: in branches that are not
taken, variables are expanded nonetheless, in a way that can be
surprising. Case in point:
\set var 'ab''cd'
-- select :var;
select :var ;
To avoid that kind of trouble, would it make sense not to expand
variables in untaken branches?
Hmmm. This case is somehow contrived (for a string, :'var' could be used,
in which case escaping would avoid the hazard), but I think that what you
suggest is a better behavior, if easy to implement.
Sent via pgsql-hackers mailing list (firstname.lastname@example.org)
To make changes to your subscription: