Re: Primary key reference count - Mailing list pgsql-sql

From Wiebe Cazemier
Subject Re: Primary key reference count
Date
Msg-id e25ja3$d1h$1@sea.gmane.org
Whole thread Raw
In response to Primary key reference count  (Wiebe Cazemier <halfgaar@gmx.net>)
List pgsql-sql
On Wednesday 19 April 2006 15:33, Wiebe Cazemier wrote:

> Either I'm blind, or this is not what I'm looking for. I need to know the
> amount of references _to_ a primary key. If you have a customer with two
> orders and one invoice, the reference count for the primary key of the
> custormer would be 3.
> 
> I need to know if I can delete rows which are not referenced anywhere,
> without catching the relational constraint exception. The reason I can't
> catch the exception, is that I want the exception to arrive at my application
> and/or tests.

Never mind. I found another solution.



pgsql-sql by date:

Previous
From: Wiebe Cazemier
Date:
Subject: Re: Primary key reference count
Next
From: Wiebe Cazemier
Date:
Subject: Re: Primary key reference count