I want to know if a certain PostgreSQL table is a part of any inheritance relationship (i.e. is a parent or a child of other table(s)).
Is there a query for that? Where is the inheritance data stored?
I want to know if a certain PostgreSQL table is a part of any inheritance relationship (i.e. is a parent or a child of other table(s)). Is there a query for that? Where is the inheritance data stored? |
||||
|
I am the guy that asked Adam about this, I found a solution so I added it here for future reference of others. |
||||
|
Check out the pg_inherits system catalog: http://www.postgresql.org/docs/9.0/interactive/catalog-pg-inherits.html |
|||
|