Re: OOP real life example (was Re: Why is MySQL more

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hannu Krosing <hannu(at)tm(dot)ee>
Cc: Curt Sampson <cjs(at)cynic(dot)net>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Don Baccus <dhogaza(at)pacifier(dot)com>, Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>, Greg Copeland <greg(at)CopelandConsulting(dot)Net>, PostgresSQL Hackers Mailing List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: OOP real life example (was Re: Why is MySQL more
Date: 2002-08-14 14:42:21
Message-ID: 8128.1029336141@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hannu Krosing <hannu(at)tm(dot)ee> writes:
> Agreed. Most of this would be easy to implement for curent
> implementation (but perhaps no more efficient than when done by manually
> added rules/triggers) if constraints could contain subqueries.

I don't understand what a constraint containing a subquery means.
Does it constrain the table(s) referenced by the subquery too? If not,
what's the point --- adding, dropping or altering rows in the referenced
table might make the constraint condition false. If it does constrain
the referenced tables, how the heck are you going to implement that in a
reasonable fashion?

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ross J. Reedstrom 2002-08-14 15:17:58 Re: Inheritance
Previous Message Greg Copeland 2002-08-14 14:39:06 Re: Inheritance