]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add test case for same-type reordered FK columns master github/master
authorAmit Langote <amitlan@postgresql.org>
Fri, 10 Apr 2026 08:44:06 +0000 (17:44 +0900)
committerAmit Langote <amitlan@postgresql.org>
Fri, 10 Apr 2026 08:44:06 +0000 (17:44 +0900)
commit009ea1b08d7b8843435bd0f1137fa3df09aac79f
treea0dcae5f8e0a3325875d01c4c4635bcbf78a8180
parentd6e96bacd3c05f1a2c1e350d04cc450e91311299
Add test case for same-type reordered FK columns

The test added in 980c1a85d819 covered reordered FK columns with
different types, which triggered an "operator not a member of opfamily"
error in the fast-path prior to that commit.  Add a test for the
same-type case, which is also fixed by that commit but where the wrong
scan key ordering instead produced a spurious FK violation without any
internal error.

Reported-by: Fredrik Widlert <fredrik.widlert@digpro.se>
Discussion: https://postgr.es/m/CADfhSr8hYc-4Cz7vfXH_oV-Jq81pyK9W4phLrOGspovsg2W7Kw@mail.gmail.com
src/test/regress/expected/foreign_key.out
src/test/regress/sql/foreign_key.sql