Re: Deleting orphan records

From: "Chris Travers" <chris(at)travelamericas(dot)com>
To: "John Smith" <john_smith_45678(at)yahoo(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Deleting orphan records
Date: 2003-02-06 00:54:39
Message-ID: 030901c2cd7a$59548250$4d733b9d@redmond.corp.microsoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Does ON DELETE CASCADE not work for you?

Other than that you would have do do outer join acrobatics ;-)

Best Regards;
Chris Travers
----- Original Message -----
From: John Smith
To: pgsql-general(at)postgresql(dot)org
Sent: Wednesday, February 05, 2003 12:55 PM
Subject: [GENERAL] Deleting orphan records

Does anybody have a method for deleting orphan (unreferenced) records? Is it possible to set up some sort of constraint or trigger (that performs well when lots of records are deleted ;) )?

------------------------------------------------------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2003-02-06 01:23:02 Re: databases limit
Previous Message Daniel Schuchardt 2003-02-06 00:15:02 Re: Large objects - SOS