mirror of https://github.com/postgres/postgres
I'd supposed that people would do this manually when creating new operator classes, but the folly of that was exposed today. The tests seem fast enough that we can just apply them during the normal regression tests. contrib/isn fails the checks for lack of complete sets of cross-type operators. That's a nice-to-have policy rather than a functional requirement, so leave it as-is, but insert ORDER BY in the query to ensure consistent cross-platform output. Discussion: https://postgr.es/m/7076.1480446837@sss.pgh.pa.uspull/18/head
parent
11da83a0e7
commit
ade49c605f
@ -1 +1,9 @@ |
||||
CREATE EXTENSION btree_gin; |
||||
-- Check whether any of our opclasses fail amvalidate |
||||
SELECT amname, opcname |
||||
FROM pg_opclass opc LEFT JOIN pg_am am ON am.oid = opcmethod |
||||
WHERE opc.oid >= 16384 AND NOT amvalidate(opc.oid); |
||||
amname | opcname |
||||
--------+--------- |
||||
(0 rows) |
||||
|
||||
|
||||
@ -1 +1,6 @@ |
||||
CREATE EXTENSION btree_gin; |
||||
|
||||
-- Check whether any of our opclasses fail amvalidate |
||||
SELECT amname, opcname |
||||
FROM pg_opclass opc LEFT JOIN pg_am am ON am.oid = opcmethod |
||||
WHERE opc.oid >= 16384 AND NOT amvalidate(opc.oid); |
||||
|
||||
@ -1 +1,9 @@ |
||||
CREATE EXTENSION btree_gist; |
||||
-- Check whether any of our opclasses fail amvalidate |
||||
SELECT amname, opcname |
||||
FROM pg_opclass opc LEFT JOIN pg_am am ON am.oid = opcmethod |
||||
WHERE opc.oid >= 16384 AND NOT amvalidate(opc.oid); |
||||
amname | opcname |
||||
--------+--------- |
||||
(0 rows) |
||||
|
||||
|
||||
@ -1 +1,6 @@ |
||||
CREATE EXTENSION btree_gist; |
||||
|
||||
-- Check whether any of our opclasses fail amvalidate |
||||
SELECT amname, opcname |
||||
FROM pg_opclass opc LEFT JOIN pg_am am ON am.oid = opcmethod |
||||
WHERE opc.oid >= 16384 AND NOT amvalidate(opc.oid); |
||||
|
||||
Loading…
Reference in new issue