Re: Question about inheritance

From: chris(dot)bitmead(at)health(dot)gov(dot)au
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Question about inheritance
Date: 2001-06-05 03:08:58
Message-ID: CA256A62.0011CAAF.00@mtascbr01.notes.health.gov.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>It's relatively straightforward to allow check constraints to be inherited -
>but is it really possible to ever do the same with primary, unique or even
>foreign constraints?

You would either have to check each index in the hierarchy or else have
a single index across the whole hierarchy and check that. Obviously the
latter would be generally more useful.

As with all things inheritance, it is usually the right thing, and a good
default that things be inherited. So ideally, indexes should work across
whole hierarchies as well as primary, unique and foreign constraints.
It could be argued that not inheriting is of very limited usefulness.

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2001-06-05 03:27:57 Re: Mirrors not tracking main ftp site?
Previous Message Thomas Lockhart 2001-06-05 03:07:04 Re: Re: [GENERAL] +/- Inf for float8's