mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-08 21:19:27 +02:00
7 lines
145 B
SQL
7 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);
|