52.27. pg\_inherits

|    52.27. `pg_inherits`     |                   |                           |                  |                                   |
|:---------------------------:|-------------------|---------------------------|------------------|-----------------------------------|
|[Prev](catalog-pg-index.html)|[Up](catalogs.html)|Chapter 52. System Catalogs|[Home](index.html)| [Next](catalog-pg-init-privs.html)|

---

## 52.27. `pg_inherits`

[]()

 The catalog `pg_inherits` records information about table and index inheritance hierarchies. There is one entry for each direct parent-child table or index relationship in the database. (Indirect inheritance can be determined by following chains of entries.)

**Table 52.27. `pg_inherits` Columns**

|                                                                                                                                                    Column Type<br/><br/> Description                                                                                                                                                   |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|                                                                                                         `inhrelid` `oid` (references [`pg_class`](catalog-pg-class.html).`oid`)<br/><br/> The OID of the child table or index                                                                                                          |
|                                                                                                        `inhparent` `oid` (references [`pg_class`](catalog-pg-class.html).`oid`)<br/><br/> The OID of the parent table or index                                                                                                         |
|`inhseqno` `int4`<br/><br/> If there is more than one direct parent for a child table (multiple inheritance), this number tells the order in which the inherited columns are to be arranged. The count starts at 1.<br/><br/> Indexes cannot have multiple inheritance, since they can only inherit when using declarative partitioning.|
|                                                                                                         `inhdetachpending` `bool`<br/><br/>`true` for a partition that is in the process of being detached; `false` otherwise.                                                                                                         |

---

|[Prev](catalog-pg-index.html)|[Up](catalogs.html)| [Next](catalog-pg-init-privs.html)|
|:----------------------------|:-----------------:|----------------------------------:|
|      52.26. `pg_index`      |[Home](index.html) |       52.28. `pg_init_privs`      |

 // \<![CDATA[ \<-- For SVG support if ('WebSocket' in window) { (function() { function refreshCSS() { var sheets = [].slice.call(document.getElementsByTagName("link")); var head = document.getElementsByTagName("head")[0]; for (var i = 0; i \< sheets.length; ++i) { var elem = sheets[i]; head.removeChild(elem); var rel = elem.rel; if (elem.href && typeof rel != "string" || rel.length == 0 || rel.toLowerCase() == "stylesheet") { var url = elem.href.replace(/(&|\\?)\_cacheOverride=\\d+/, ''); elem.href = url + (url.indexOf('?') \>= 0 ? '&' : '?') + '\_cacheOverride=' + (new Date().valueOf()); } head.appendChild(elem); } } var protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://'; var address = protocol + window.location.host + window.location.pathname + '/ws'; var socket = new WebSocket(address); socket.onmessage = function(msg) { if (msg.data == 'reload') window.location.reload(); else if (msg.data == 'refreshcss') refreshCSS(); }; console.log('Live reload enabled.'); })(); } // ]]\>