postgresql/contrib/btree_gin/sql/install_btree_gin.sql

7 lines
219 B
SQL

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);