From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Aasmund Midttun Godal" <postgresql(at)envisity(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: System catalogs |
Date: | 2001-11-18 19:26:46 |
Message-ID: | 3567.1006111606@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
"Aasmund Midttun Godal" <postgresql(at)envisity(dot)com> writes:
> I saw in the docs that you are not supposed to edit them manually... However is it considered appropriate to do other things such as:
> referencing them (adding foreign keys on them)
> adding triggers to them (e.g. delete all this stuff if this table is dropped). This would include adding cascade clauses to the referring.
By and large, triggers on system catalogs will not work, because most
of the internal manipulations of the catalogs do not bother to fire
triggers. This implies that foreign key constraints won't work either,
since those are implemented by triggers.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | cnliou | 2001-11-19 00:30:25 | Foreign Key Constraint Deletion Order |
Previous Message | Stephan Szabo | 2001-11-18 19:15:56 | Re: System catalogs |