Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

inherting triggers



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?



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group