Re: trigger inheritance

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: fcanedo(at)soneramail(dot)nl
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: trigger inheritance
Date: 2001-07-05 14:13:32
Message-ID: 2862.994342412@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

fcanedo(at)soneramail(dot)nl writes:
> In the reference manual (CREATE TABLE) it says "Postgres
> automatically allows the created table to inherit functions on tables
> above it in the inheritance hierarchy."

> Since functions don't belong to tables (correct me if I'm wrong)

Okay, you're wrong.

What that sentence is referring to is the fact that functions declared
as taking table row types can be applied to rows of derived tables as
well as the one they were originally declared against. (I'm not sure
how well this actually works in cases involving multiple inheritance
or ALTER TABLE, but in simple cases it should be OK.)

Triggers and indexes are not inherited. Yes, that's probably a bug.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-07-05 14:29:35 Re: [PATCH] Partial indicies done
Previous Message Tom Lane 2001-07-05 14:03:51 Re: Trigger with current user