summaryrefslogtreecommitdiffstats
path: root/src/test/examples/testlibpq2.sql
blob: e8173e4293b55840384b5d67a9d47a87f61f19ef (plain)
1
2
3
4
5
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);