Fix a number of syntax errors in contrib modules' uninstall scripts.
Neil Conway <neilc@samurai.com>
Fix a number of syntax errors in contrib modules' uninstall scripts. Most of the changes add the mandatory USING clause to DROP OPERATOR CLASS statements. DROP TYPE is now DROP TYPE CASCADE; without CASCADE a DROP TYPE fails due to the circular dependency on the type's I/O functions. The DROP FUNCTION statements for the I/O functions have been removed, as DROP TYPE CASCADE removes them automatically. Patch from Michael Fuhr.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/btree_gist/uninstall_btree_gist.sql | modified | +27 −51 |
| contrib/chkpass/uninstall_chkpass.sql | modified | +5 −18 |
| contrib/cube/uninstall_cube.sql | modified | +3 −7 |
| contrib/dblink/uninstall_dblink.sql | modified | +1 −1 |
| contrib/intarray/uninstall__int.sql | modified | +4 −12 |
| contrib/isbn_issn/uninstall_isbn_issn.sql | modified | +4 −12 |
| contrib/ltree/uninstall_ltree.sql | modified | +7 −23 |
| contrib/pg_trgm/uninstall_pg_trgm.sql | modified | +2 −6 |
| contrib/seg/uninstall_seg.sql | modified | +3 −7 |