Path: | sample/test2.rb |
Last Update: | Mon Mar 12 20:12:19 -0600 2007 |
original file src/test/examples/testlibpq2.c
Test of the asynchronous notification interface
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); Then start up this program After the program has begun, do INSERT INTO TBL1 values (10);