diff options
Diffstat (limited to 'src/test/examples/testlibpq2.sql')
-rw-r--r-- | src/test/examples/testlibpq2.sql | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/examples/testlibpq2.sql b/src/test/examples/testlibpq2.sql new file mode 100644 index 0000000..e8173e4 --- /dev/null +++ b/src/test/examples/testlibpq2.sql @@ -0,0 +1,6 @@ +CREATE SCHEMA TESTLIBPQ2; +SET search_path = TESTLIBPQ2; +CREATE TABLE TBL1 (i int4); +CREATE TABLE TBL2 (i int4); +CREATE RULE r1 AS ON INSERT TO TBL1 DO + (INSERT INTO TBL2 VALUES (new.i); NOTIFY TBL2); |