Re: determining Inheritance among tables - Mailing list pgsql-novice

From Josh Jore
Subject Re: determining Inheritance among tables
Date
Msg-id Pine.BSO.4.44.0207050900430.18711-100000@kitten.greentechnologist.org
Whole thread Raw
In response to determining Inheritance among tables  (Kevin Hyde <KevinHyde@mckenzieseeds.com>)
List pgsql-novice
I suppose you would examine pg_class.relhassubclass for true values. You
can then find the oids of child classes in pg_inherits. You're better off
examining the SQL that created the tables in the first place especially if
you are going to modify the tables this way.

As for actually modifying - you've got all that data in your child table
pertaining to inherited attributes. You'll probably do something like
renaming the existing subclass out of the way, create the new class and
then just populate the new table.

Joshua b. Jore ; http://www.greentechnologist.org

On Thu, 4 Jul 2002, Kevin Hyde wrote:

>
> I have a PostgreSQL database containing a number of tables.  How do I find
> out which tables are inherited to which?  And once I know that, how do I
> change(create or revoke) the inheritance?
>
> Thx,
> Kevin.
>




pgsql-novice by date:

Previous
From: Kevin Hyde
Date:
Subject: determining Inheritance among tables
Next
From: Oliver Elphick
Date:
Subject: Re: determining Inheritance among tables