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

triggers and inheritance tree

From: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: triggers and inheritance tree
Date: 2012-03-28 06:21:26
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

i was trying to create triggers that redirect INSERT/UPDATE/DELETE
actions from parent to childs, but found that UPDATE/DELETE doesn't
get redirected. Actually, the triggers BEFORE UPDATE and BEFORE DELETE
aren't even fired.

I haven't tried with AFTER triggers to see if they are fired but i
tried on 8.4 to 9.1 and all of these have the same behaviour

attached is a simple contained test of this

PS: i'm hoping this is just me needed to sleep

Jaime Casanova
Professional PostgreSQL: Soporte 24x7 y capacitación

Attachment: test.sql
Description: text/x-sql (1.6 KB)


pgsql-hackers by date

Next:From: Thom BrownDate: 2012-03-28 07:13:29
Subject: Re: pgsql_fdw, FDW for PostgreSQL server
Previous:From: Ants AasmaDate: 2012-03-28 02:37:25
Subject: [PATCH] Lazy hashaggregate when no aggregation is needed

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group