Re: Problem identifying constraints which should not be inherited

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Problem identifying constraints which should not be inherited
Дата
Msg-id 20080320124117.GB6235@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Problem identifying constraints which should not be inherited  (NikhilS <nikkhils@gmail.com>)
Ответы Re: Problem identifying constraints which should not be inherited  (NikhilS <nikkhils@gmail.com>)
Re: Problem identifying constraints which should not be inherited  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
NikhilS escribió:

> On Wed, Mar 19, 2008 at 8:23 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> > If it's a small patch, it's wrong by definition.  AFAICS there is no way
> > to fix this correctly that doesn't involve catalog changes.  The point
> > of the TODO is that you have to enforce that the inherited constraint
> > sticks around, eg can't be dropped on a child table while it's still
> > present on the parent.  There are implications for pg_dump too.
>
> Ok, I understand. But even then this could patch could be considered even if
> it does not solve the TODO completely, no? It atleast disallows ONLY ADD
> CONSTRAINT on the parent.

No, because you would then feel that the TODO item is completed and not
provide a patch for the whole problem :-)

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Rui Martins"
Дата:
Сообщение: Re: BUG #4044: Incorrect RegExp substring Output
Следующее
От: NikhilS
Дата:
Сообщение: Re: Problem identifying constraints which should not be inherited