test2.rb

Path: sample/test2.rb
Last Update: Thu Sep 07 20:23:30 MDT 2006

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);

Required files

postgres  

Methods

main  

Public Instance methods

[Validate]