pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Aasmund Midttun Godal <postgresql@envisity.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: System catalogs
Date: Sun, 18 Nov 2001 14:26:46 -0500
Message-ID: <3567.1006111606@sss.pgh.pa.us> (raw)
In-Reply-To: <20011118184303.10663.qmail@ns.krot.org>
References: <20011118184303.10663.qmail@ns.krot.org>

"Aasmund Midttun Godal" <postgresql@envisity.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



view thread (3+ messages)

Message-ID: <3567.1006111606@sss.pgh.pa.us>
Permalink:  ../3567.1006111606@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3567.1006111606@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, postgresql@envisity.com
  Subject: Re: System catalogs
  In-Reply-To: <3567.1006111606@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox