Re: problem with parent/child table and FKs

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Cc: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
Subject: Re: problem with parent/child table and FKs
Date: 2011-04-21 14:53:04
Message-ID: 201104210753.05149.adrian.klaver@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday, April 21, 2011 4:36:51 am Karsten Hilbert wrote:
> Does anyone have any suggestions regarding the below ?

The only thing I can come up with is to eliminate the FK :
fk_code integer not null
references code_root(pk_code_root)
on update restrict
on delete restrict
on lnk_codes2epi and replace it with a trigger that essentially does the same
thing ; check for presence of pk_code_root.

>
> Thanks,
> Karsten
>

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Grittner 2011-04-21 14:55:02 Re: How to uninstall PostgreSQL 8.4 on both Windows XP and Windows 7
Previous Message Greg Smith 2011-04-21 14:49:28 Re: SSDs with Postgresql?