Hi,
+ if (pg_strncasecmp(option, "concurrently", 12))
+ /* XXX what if it's 'CONCURRENTLY OFF'? */
+ return true;
That’s a good question and the answer is kinda dissatisfying because
in that case, `psql` will not begin the transaction even though it
could (and would without any options) and would thus cause it to be
autocommited.
That would be slightly unexpected, though I agree it’s probably an edge case.
It’s a bit of a shame that psql needs to do a very minimal parsing job
here when the actual parsing (and the decision of whether something
can run in a transaction or not) happens on the server side again and
in a much more thorough way.
Philip