/* There should exist only one entry or none. */
oldtuple = systable_getnext(scan);
- systable_endscan(scan);
-
/* If we find an entry, update it with the latest ACL. */
if (HeapTupleIsValid(oldtuple))
{
CatalogUpdateIndexes(relation, tuple);
}
+ systable_endscan(scan);
+
/* prevent error when processing objects multiple times */
CommandCounterIncrement();
MODULE = test_extensions
PGFILEDESC = "test_extensions - regression testing for EXTENSION support"
-EXTENSION = test_ext1 test_ext2 test_ext3 test_ext4 test_ext5 \
+EXTENSION = test_ext1 test_ext2 test_ext3 test_ext4 test_ext5 test_ext6 \
test_ext_cyclic1 test_ext_cyclic2
DATA = test_ext1--1.0.sql test_ext2--1.0.sql test_ext3--1.0.sql \
- test_ext4--1.0.sql test_ext5--1.0.sql test_ext_cyclic1--1.0.sql \
- test_ext_cyclic2--1.0.sql
+ test_ext4--1.0.sql test_ext5--1.0.sql test_ext6--1.0.sql \
+ test_ext_cyclic1--1.0.sql test_ext_cyclic2--1.0.sql
REGRESS = test_extensions test_extdepend
drop cascades to extension test_ext2
drop cascades to extension test_ext4
drop cascades to extension test_ext1
+CREATE EXTENSION test_ext6;
+DROP EXTENSION test_ext6;
+CREATE EXTENSION test_ext6;
CREATE EXTENSION test_ext_cyclic1 CASCADE;
DROP SCHEMA test_ext CASCADE;
+
+CREATE EXTENSION test_ext6;
+DROP EXTENSION test_ext6;
+CREATE EXTENSION test_ext6;
--- /dev/null
+grant usage on schema @extschema@ to public;
--- /dev/null
+comment = 'test_ext6'
+default_version = '1.0'
+relocatable = false
+superuser = true
+schema = 'test_ext6'