Re: [HACKERS] Inherited constraints and search paths (was Re:

From: Berend Tober <btober(at)seaworthysys(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgreSQL(dot)org, pgsql-general(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Inherited constraints and search paths (was Re:
Date: 2005-05-20 12:29:21
Message-ID: 428DD821.70001@seaworthysys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Simon Riggs wrote:

>On Thu, 2005-05-19 at 23:27 -0400, Tom Lane wrote:
>
>
>>Berend Tober <btober(at)seaworthysys(dot)com> writes:
>>
>>
>>>Now what, oh most wise one?
>>>
>>>
>>OK, now I finally get the point: you are creating child tables in
>>different schemas than their parents live in.
>>
>>
>
>...
>
>
>>Comments anyone?
>>
>>
>
>Best thing to do is to prevent people from creating child tables in
>different schemas. Or at least advise against it.
>
>Doing anything to restrict dropping of inherited constraints seems like
>wasted effort and potentially annoying anyhow.
>
>My partitioning efforts will eventually distinguish between inherited
>and non-inherited constraints, since the former are fairly useless for
>partition elimination. So I can't see a reason to care whether they are
>there or not, if the user knows better.
>
>
The case in question was not one of the child table being in a different
partition (do you mean schema?), although that arrangement was
considered and rejected for other reasons during data base design. In
this implementation, a function called for a table constraint was in a
different schema. The function so called was defined in the public
scheme because it is a generic function that can be used by different
applications, and some tables are relevant only to specific applications
and so have there own, application-specific schema -- but they still can
make use of shared definitions, i.e., this particular function, which
are defined in the public schema.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message raptor@tvskat.net 2005-05-20 12:35:45 filling database
Previous Message John D. Burger 2005-05-20 12:19:58 Re: numeric precision when raising one numeric to another.

Browse pgsql-hackers by date

  From Date Subject
Next Message Lamar Owen 2005-05-20 13:26:36 Re: 8.02 rpm error
Previous Message Dave Cramer 2005-05-20 11:55:05 Re: 8.02 rpm error