inherting triggers

From: Joseph S <jks(at)selectacast(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: inherting triggers
Date: 2007-07-26 00:39:01
Message-ID: f88qet$1210$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am planning on segmenting one of my large tables into many child
tables using "CREATE TABLE ... INHERITS (parent)", but I want all the
triggers on my parent table to also fire on UPDATE/INSERT/DELETE on my
child table. As far as I can tell, there is no way to do this with the
CREATE TABLE command. Can I just duplicate the rows in pg_trigger but
change the tgrelid to the new child?

Browse pgsql-general by date

  From Date Subject
Next Message Milen A. Radev 2007-07-26 01:01:03 Re: granting acces to an external client
Previous Message Dann Corbit 2007-07-25 22:52:56 Re: using Tsearch2 for chemical text