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

From Oliver Elphick
Subject Re: determining Inheritance among tables
Date
Msg-id 1025894268.31584.35.camel@linda
Whole thread Raw
In response to determining Inheritance among tables  (Kevin Hyde <KevinHyde@mckenzieseeds.com>)
List 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 by date:

Previous
From: Josh Jore
Date:
Subject: Re: determining Inheritance among tables
Next
From: Oliver Elphick
Date:
Subject: Re: limiting a select