Re: ADD/DROP INHERITS - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: ADD/DROP INHERITS
Date
Msg-id 20060608163027.GE17421@surnet.cl
Whole thread Raw
In response to Re: ADD/DROP INHERITS  (Greg Stark <gsstark@mit.edu>)
Responses Re: ADD/DROP INHERITS  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Greg Stark wrote:

> Well I'm not actually deleting anything. The dependency is between the two
> tables and I don't want to delete either of the tables.
> 
> Perhaps what should really be happening here is that there should be
> dependencies from the pg_inherit entry to the two tables rather than from one
> table to the other.
> 
> Then a simple performDeletion on the pg_inherit entry would take care of the
> dependencies.

Sounds like a reasonable thing to do ...  If you drop the parent table,
does that cascade to the child table as well?  Maybe what should happen
is that the child table is "disinherited".

I note that our documentation
http://www.postgresql.org/docs/8.1/static/sql-droptable.html
does not specify what happens.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: How to avoid transaction ID wrap
Next
From: Greg Stark
Date:
Subject: Re: ADD/DROP INHERITS