Set amcancrosscompare to true for hash
authorPeter Eisentraut <peter@eisentraut.org>
Sat, 1 Mar 2025 08:15:27 +0000 (09:15 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Sat, 1 Mar 2025 08:15:27 +0000 (09:15 +0100)
This was missed in the refactoring in patch ce62f2f2a0a, which thus
created a regression.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Mark Dilger <mark.dilger@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/E1tngY6-0000UL-2n%40gemulon.postgresql.org

src/backend/access/hash/hash.c

index a22845d70680210a02850bd80ed8c60ec6d1b25a..4c83b09eddea7cf05c1f94ddf6fb1f15e76f1796 100644 (file)
@@ -65,7 +65,7 @@ hashhandler(PG_FUNCTION_ARGS)
    amroutine->amcanorder = false;
    amroutine->amcanorderbyop = false;
    amroutine->amcanhash = true;
-   amroutine->amcancrosscompare = false;
+   amroutine->amcancrosscompare = true;
    amroutine->amcanbackward = true;
    amroutine->amcanunique = false;
    amroutine->amcanmulticol = false;