Search Postgresql Archives

Re: Trigger to clone across databases?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 16, 2009 at 6:31 PM, Darren Govoni <darren@xxxxxxxxxxxx> wrote:
> Hi,
>  I'm looking for a trigger (any language) that can clone the inserted
> row and insert it in another postgres server elsewhere. Is this
> possible? Practical? Thoughts?
>
> I know there are some replication systems out there, but I'm hoping a
> simple trigger will suffice since I only need to clone one row at a time
> on insert.

Slony does essentially that.  A trigger puts the updates into a log
table, the slony process gathers all the changes up and puts them into
the destination tables.

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux