Re: [PATCHES] BUG #3973: pg_dump using inherited tables do not always restore
| От | Tom Lane |
|---|---|
| Тема | Re: [PATCHES] BUG #3973: pg_dump using inherited tables do not always restore |
| Дата | |
| Msg-id | 2266.1204587590@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #3973: pg_dump using inherited tables do not always restore ("Alex Hunsaker" <badalex@gmail.com>) |
| Ответы |
Re: [PATCHES] BUG #3973: pg_dump using inherited tables do not always restore
|
| Список | pgsql-bugs |
"Alex Hunsaker" <badalex@gmail.com> writes:
> On Wed, Feb 20, 2008 at 3:55 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Actually the bug is that ALTER TABLE allows you to do that. It should
>> not be possible to drop an inherited constraint, but right now there's
>> not enough information in the system catalogs to detect the situation.
>> Fixing this has been on the TODO list for awhile:
> Hrm how about something like the attached patch?
It seems much more restrictive than necessary, plus it does nothing
for the check-constraint case. My recollection of the previous
discussion about how to fix this was that we needed to add an inhcount
column to pg_constraint, and add entries for not-null constraints (at
least inherited ones) to pg_constraint so that they'd be able to have
inhcount fields. The latter would also allow us to attach names to
not-null constraints, which I think is required by spec but we've never
supported.
regards, tom lane
В списке pgsql-bugs по дате отправления: