pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Luiz K. Matsumura <luiz@planit.com.br>
To: pgsql-bugs@postgresql.org
Subject: Behaviour of triggers on replicated and non replicated tables
Date: Fri, 10 Jun 2011 10:20:27 -0300
Message-ID: <4DF21A1B.3060101@planit.com.br> (raw)

Hi,
I need help to know if the follow scenario is a expected behaviour, a 
bug of postgres or a bug of slony:

Postgres v8.4.8
Slony-I v 2.0.5

I have table replicated with slony and that do some updates in another 
table not replicated.

The trigger on replicated table was enabled on the slave database with 
the command:

ALTER TABLE table1 ENABLE ALLWAYS TRIGGER trigger1;

And this trigger is working fine as expected.

The strange behaviour is that trigger do a update in another table not 
replicated, let´s say table2, and
the triggers of this table is not fired.
A unexpected behaviour IMHO, if I do

ALTER TABLE table2 ENABLE ALWAYS TRIGGER trigger2;

Then the trigger2 is fired now when trigger1 do a update in table2.

My doubt is: since table2 is not replicated why they triggers dont fire 
even by a update command in
a trigger of a replicated table ?


Best Regards,

Luiz K. Matsumura



view thread (6+ messages)  latest in thread

Message-ID: <4DF21A1B.3060101@planit.com.br>
Permalink:  ../4DF21A1B.3060101@planit.com.br/
Also on:    postgresql.org/message-id/4DF21A1B.3060101@planit.com.br

 · 

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-bugs@postgresql.org
  Cc: luiz@planit.com.br
  Subject: Re: Behaviour of triggers on replicated and non replicated tables
  In-Reply-To: <4DF21A1B.3060101@planit.com.br>
  References: <4DF21A1B.3060101@planit.com.br>

* 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