pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Koczan <pjkoczan@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: Legacy foreign keys
Date: Sat, 2 Feb 2008 13:43:15 -0600
Message-ID: <4544e0330802021143n2d38dce8k4ff9ab271aa35c2a@mail.gmail.com> (raw)
In-Reply-To: <17999.1201909980@sss.pgh.pa.us>
References: <4544e0330712101112r6aeccfcckef378a7ea1795e07@mail.gmail.com>
	<20427.1197324492@sss.pgh.pa.us>
	<4544e0330712111901k1fa50c5dgb26287aff018e98c@mail.gmail.com>
	<10859.1197428770@sss.pgh.pa.us>
	<4544e0330712120940i413e3ad6y867fc2a8744f623b@mail.gmail.com>
	<4544e0330801311613t5cc6741cx1464947c2215f198@mail.gmail.com>
	<18279.1201845349@sss.pgh.pa.us>
	<4544e0330802011030l477b0d8ek57909e75ff367128@mail.gmail.com>
	<4544e0330802011539j78ab6d2eofcf58e9442031115@mail.gmail.com>
	<17999.1201909980@sss.pgh.pa.us>

> Yeah, it's expecting to see a set of three related triggers.  For
> instance, if I do this in a 7.0 database:
> ...
> If your original database doesn't have all three triggers, then you had
> a problem already --- the FK constraint wasn't being enforced properly.

Ah, these were from before I became the main database admin. It was
probably some previous admin or programmer who thought he could be
clever and drop the other FK-related triggers.

> In 8.3, you could look for the pg_trigger entries with zero tgconstraint
> values.  However, prior versions don't have that column; you'd have to
> look instead for entries that aren't linked to a pg_constraint entry
> by a pg_depend entry.

Thanks again, I should have enough info to fix this now.

Peter



view thread (15+ messages)  latest in thread

Message-ID: <4544e0330802021143n2d38dce8k4ff9ab271aa35c2a@mail.gmail.com>
Permalink:  ../4544e0330802021143n2d38dce8k4ff9ab271aa35c2a@mail.gmail.com/
Also on:    postgresql.org/message-id/4544e0330802021143n2d38dce8k4ff9ab271aa35c2a@mail.gmail.com

 · 

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-admin@postgresql.org
  Cc: pjkoczan@gmail.com, tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org
  Subject: Re: Legacy foreign keys
  In-Reply-To: <4544e0330802021143n2d38dce8k4ff9ab271aa35c2a@mail.gmail.com>

* 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