]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Rewrite some regression queries for option checks with COPY
authorMichael Paquier <michael@paquier.xyz>
Wed, 16 Oct 2024 22:21:40 +0000 (07:21 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 16 Oct 2024 22:21:40 +0000 (07:21 +0900)
commita30c1ca21c584cb0917a5e6fbe086164cd8bec6a
tree4a4f3b1e3b91a062238ee7ada3b53d52e0e497b5
parentb5eef75391c8e9dd770ba3de9625bb260b086295
Rewrite some regression queries for option checks with COPY

Some queries in copy2 are there to check various option combinations,
and used "stdin" or "stdout" incompatible with the COPY TO or FROM
clauses combined with them, which was confusing.  This commit rewrites
these queries to use a compatible grammar.

The coverage of the tests is unchanged.  Like the original commit
451d1164b9d0, backpatch down to 16 where these have been introduced.  A
follow-up commit will rely on this area of the tests for a bug fix.

Author: Joel Jacobson
Reviewed-by: Zhang Mingli
Discussion: https://postgr.es/m/65030d1d-5f90-4fa4-92eb-f5f50389858e@app.fastmail.com
Backpatch-through: 16
src/test/regress/expected/copy2.out
src/test/regress/sql/copy2.sql