Re: TRIGGERS and FUNCTIONS - Mailing list pgsql-sql

From Richard Broersma Jr
Subject Re: TRIGGERS and FUNCTIONS
Date
Msg-id 535186.34449.qm@web31810.mail.mud.yahoo.com
Whole thread Raw
In response to TRIGGERS and FUNCTIONS  ("ashok raj" <ashokexplorer@gmail.com>)
List pgsql-sql
--- ashok raj <ashokexplorer@gmail.com> wrote:

>  Hello All ,
> 
>                I am having a table named  "test"  with a trigger  " tri_test
> "  which triggers the function  " replicate() "  on insert, update  and
> delete .
>                Can I able to get the  SQL STATEMENT  which triggers the
> function replicate ( ) ,  inside the function definition replicate ( ) .
>                So that I could execute that statement in the remote
> postgreSQL server

You probably can get the statement.  However, your solution sounds a lot like an existing
replication solution, "Slony".  It will do exactly what you want, and is already stable for
production systems.

http://pgfoundry.org/projects/slony1/

Regards,
Richard Broersma Jr.


pgsql-sql by date:

Previous
From: "ashok raj"
Date:
Subject: TRIGGERS and FUNCTIONS
Next
From: "Jon Horsman"
Date:
Subject: Re: When is a shared library unloaded?