Re: determining Inheritance among tables
От | Josh Jore |
---|---|
Тема | Re: determining Inheritance among tables |
Дата | |
Msg-id | Pine.BSO.4.44.0207050900430.18711-100000@kitten.greentechnologist.org обсуждение исходный текст |
Ответ на | determining Inheritance among tables (Kevin Hyde <KevinHyde@mckenzieseeds.com>) |
Список | 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 по дате отправления: