pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
To: Joe R. Plugge <JRPlugge@west.com>
Subject: Re: DELETE and UPDATE triggers on parent table of partioned table not firing.
Date: Thu, 03 May 2012 12:54:25 -0500
Message-ID: <4FA280010200002500047826@gw.wicourts.gov> (raw)
In-Reply-To: <BD69807DAE0CE44CA00A8338D0FDD083033A35B01A@oma00cexmbx03.corp.westworlds.com>
References: <BD69807DAE0CE44CA00A8338D0FDD083033A35B01A@oma00cexmbx03.corp.westworlds.com>

"Plugge, Joe R." <JRPlugge@west.com> wrote:
 
> Using postgres 9.0.7 on RHEL 5.4.  I have a parent table that is
> partitioned by day.  My inserts are working correctly and are
> being directed to the correct child table.  I also have both an
> UPDATE and DELETE trigger on the parent table that are defined as
> AFTER triggers.  The actual update and delete operation works,
> however the triggers do not seem to be firing.  What am I doing
> wrong?
 
The DELETE and UPDATE triggers need to be on the child tables.  An
operation on a child doesn't fire the triggers of the parent.
 
-Kevin



view thread (2+ messages)

Message-ID: <4FA280010200002500047826@gw.wicourts.gov>
Permalink:  ../4FA280010200002500047826@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4FA280010200002500047826@gw.wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, JRPlugge@west.com
  Subject: Re: DELETE and UPDATE triggers on parent table of partioned table not firing.
  In-Reply-To: <4FA280010200002500047826@gw.wicourts.gov>

* 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