summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2022-09-01 18:30:41 +0000
committerTom Lane2022-09-01 18:30:41 +0000
commita1b9b14cc80327854ff667973096a230434a2386 (patch)
treec3ff46eb608f388fbb9eaf9e5dbf1b2d5f8df27c
parent97fe6d2210d4c6a0be3ff16abc9432b2c0a867b8 (diff)
Use --load-extension to set up for contrib/tcn's isolation tests.
Oversight in commit 418ec3207: it's better to do it like this, else you have to drop and recreate the extension for each permutation. tcn.spec only has one permutation at present, so this doesn't speed it up any, but it's still a bad example.
-rw-r--r--contrib/tcn/Makefile1
-rw-r--r--contrib/tcn/specs/tcn.spec1
2 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tcn/Makefile b/contrib/tcn/Makefile
index f36e6beddd8..68132890005 100644
--- a/contrib/tcn/Makefile
+++ b/contrib/tcn/Makefile
@@ -7,6 +7,7 @@ DATA = tcn--1.0.sql
PGFILEDESC = "tcn - trigger function notifying listeners"
ISOLATION = tcn
+ISOLATION_OPTS = --load-extension=tcn
ifdef USE_PGXS
PG_CONFIG = pg_config
diff --git a/contrib/tcn/specs/tcn.spec b/contrib/tcn/specs/tcn.spec
index 87203981392..fb9e7305fca 100644
--- a/contrib/tcn/specs/tcn.spec
+++ b/contrib/tcn/specs/tcn.spec
@@ -7,7 +7,6 @@
setup
{
- CREATE EXTENSION tcn;
CREATE TABLE mytable (key int PRIMARY KEY, value text);
CREATE TRIGGER tcntrig AFTER INSERT OR UPDATE OR DELETE ON mytable
FOR EACH ROW EXECUTE FUNCTION triggered_change_notification(mychannel);