Re: determining Inheritance among tables

Поиск
Список
Период
Сортировка
От Oliver Elphick
Тема Re: determining Inheritance among tables
Дата
Msg-id 1025894268.31584.35.camel@linda
обсуждение исходный текст
Ответ на determining Inheritance among tables  (Kevin Hyde <KevinHyde@mckenzieseeds.com>)
Список pgsql-novice
On Thu, 2002-07-04 at 21:14, 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?


SELECT   a.relname AS child,
         b.relname AS parent
  FROM   pg_class AS a,
         pg_class AS b,
         pg_inherits AS c
  WHERE  a.oid = c.inhrelid AND
         b.oid = c.inhparent;






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

Предыдущее
От: Josh Jore
Дата:
Сообщение: Re: determining Inheritance among tables
Следующее
От: Oliver Elphick
Дата:
Сообщение: Re: limiting a select