Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a1b9b14

Browse files
committed
Use --load-extension to set up for contrib/tcn's isolation tests.
Oversight in commit 418ec32: 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.
1 parent 97fe6d2 commit a1b9b14

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

contrib/tcn/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ DATA = tcn--1.0.sql
77
PGFILEDESC = "tcn - trigger function notifying listeners"
88

99
ISOLATION = tcn
10+
ISOLATION_OPTS = --load-extension=tcn
1011

1112
ifdef USE_PGXS
1213
PG_CONFIG = pg_config

contrib/tcn/specs/tcn.spec

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
setup
99
{
10-
CREATE EXTENSION tcn;
1110
CREATE TABLE mytable (key int PRIMARY KEY, value text);
1211
CREATE TRIGGER tcntrig AFTER INSERT OR UPDATE OR DELETE ON mytable
1312
FOR EACH ROW EXECUTE FUNCTION triggered_change_notification(mychannel);

0 commit comments

Comments
 (0)