pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rural Hunter <ruralhunter@gmail.com>
To: pgsql-admin@postgresql.org
Subject: triggers are not shared between parent and child tables?
Date: Mon, 12 Mar 2012 11:06:04 +0800
Message-ID: <4F5D681C.7080006@gmail.com> (raw)

I implemented table partition recently and found that the tiggers on 
parent table are not working any more, except the before insert trigger 
which redirects data to children table. The after insert/update triggers 
are not working now. I understand the after insert trigger may not 
working since the before insert trigger redirects inserts to children 
table and returns null. But why the update triggers are also not 
working? I googled and found this 
article(http://www.peachpit.com/articles/article.aspx?p=31206&seqNum=3) 
mentions "triggers are not shared between parent and child tables". is 
it true? Maybe I overlooked but somehow I didn't find this in partition 
part of postgresql 
doc(http://www.postgresql.org/docs/9.1/static/ddl-partitioning.html).



view thread (5+ messages)  latest in thread

Message-ID: <4F5D681C.7080006@gmail.com>
Permalink:  ../4F5D681C.7080006@gmail.com/
Also on:    postgresql.org/message-id/4F5D681C.7080006@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ruralhunter@gmail.com
  Subject: Re: triggers are not shared between parent and child tables?
  In-Reply-To: <4F5D681C.7080006@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