mirror of
https://github.com/postgres/postgres.git
synced 2026-02-12 23:33:27 -05:00
5 lines
145 B
SQL
5 lines
145 B
SQL
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];
|