pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: chirag.dave@gmail.com
To: Plugge, Joe R. <JRPlugge@west.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Slony-I - Update trigger on a replicated table
Date: Thu, 13 May 2010 17:47:21 -0400
Message-ID: <AANLkTiknzbyo3f1WO2yMRmeuxNGY5rY5nFnIzIvYtDEM@mail.gmail.com> (raw)
In-Reply-To: <BD69807DAE0CE44CA00A8338D0FDD08302D2B27515@oma00cexmbx03.corp.westworlds.com>
References: <4AB948FE.9050903@nrc-cnrc.gc.ca>
	<11836.1253675229@sss.pgh.pa.us>
	<4ABA42FE.20100@nrc-cnrc.gc.ca>
	<BD69807DAE0CE44CA00A8338D0FDD08302D2B27511@oma00cexmbx03.corp.westworlds.com>
	<BD69807DAE0CE44CA00A8338D0FDD08302D2B27515@oma00cexmbx03.corp.westworlds.com>

On Thu, May 13, 2010 at 5:11 PM, Plugge, Joe R. <JRPlugge@west.com> wrote:

> Nevermind ... I RTFM ...
>
> echo "alter table mytable ENABLE REPLICA TRIGGER check_lockout;" | psql
> mydb
>

This is not good idea. Always run DDL script using Slony execute script.

http://www.slony.info/documentation/ddlchanges.html



>
> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org [mailto:
> pgsql-admin-owner@postgresql.org] On Behalf Of Plugge, Joe R.
> Sent: Thursday, May 13, 2010 4:02 PM
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] Slony-I - Update trigger on a replicated table
>
> Anyone know if it is possible to create an update trigger on the
> destination side of a replicated table in Slony-I and have the replication
> itself cause the trigger to fire? I was able to add the trigger but when run
> the test transaction through, it does not seem to be firing.  It works on
> the non-replicated version of the solution.
>
> Running postgres 8.4.1 and Slony-I 2.0.3
>
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>

view thread (3+ messages)

Message-ID: <AANLkTiknzbyo3f1WO2yMRmeuxNGY5rY5nFnIzIvYtDEM@mail.gmail.com>
Permalink:  ../AANLkTiknzbyo3f1WO2yMRmeuxNGY5rY5nFnIzIvYtDEM@mail.gmail.com/
Also on:    postgresql.org/message-id/AANLkTiknzbyo3f1WO2yMRmeuxNGY5rY5nFnIzIvYtDEM@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: chirag.dave@gmail.com, JRPlugge@west.com
  Subject: Re: Slony-I - Update trigger on a replicated table
  In-Reply-To: <AANLkTiknzbyo3f1WO2yMRmeuxNGY5rY5nFnIzIvYtDEM@mail.gmail.com>
  References: <4AB948FE.9050903@nrc-cnrc.gc.ca> <11836.1253675229@sss.pgh.pa.us> <4ABA42FE.20100@nrc-cnrc.gc.ca> <BD69807DAE0CE44CA00A8338D0FDD08302D2B27511@oma00cexmbx03.corp.westworlds.com> <BD69807DAE0CE44CA00A8338D0FDD08302D2B27515@oma00cexmbx03.corp.westworlds.com> <AANLkTiknzbyo3f1WO2yMRmeuxNGY5rY5nFnIzIvYtDEM@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox