52.41. pg\_range

|           52.41. `pg_range`           |                   |                           |                  |                                           |
|:-------------------------------------:|-------------------|---------------------------|------------------|-------------------------------------------|
|[Prev](catalog-pg-publication-rel.html)|[Up](catalogs.html)|Chapter 52. System Catalogs|[Home](index.html)| [Next](catalog-pg-replication-origin.html)|

---

## 52.41. `pg_range`

[]()

 The catalog `pg_range` stores information about range types. This is in addition to the types' entries in [`pg_type`](catalog-pg-type.html).

**Table 52.41. `pg_range` Columns**

|                                                                                  Column Type<br/><br/> Description                                                                                 |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|                                               `rngtypid` `oid` (references [`pg_type`](catalog-pg-type.html).`oid`)<br/><br/> OID of the range type                                                |
|                               `rngsubtype` `oid` (references [`pg_type`](catalog-pg-type.html).`oid`)<br/><br/> OID of the element type (subtype) of this range type                               |
|                                `rngmultitypid` `oid` (references [`pg_type`](catalog-pg-type.html).`oid`)<br/><br/> OID of the multirange type for this range type                                 |
|                   `rngcollation` `oid` (references [`pg_collation`](catalog-pg-collation.html).`oid`)<br/><br/> OID of the collation used for range comparisons, or zero if none                   |
|                       `rngsubopc` `oid` (references [`pg_opclass`](catalog-pg-opclass.html).`oid`)<br/><br/> OID of the subtype's operator class used for range comparisons                        |
|             `rngcanonical` `regproc` (references [`pg_proc`](catalog-pg-proc.html).`oid`)<br/><br/> OID of the function to convert a range value into canonical form, or zero if none              |
|`rngsubdiff` `regproc` (references [`pg_proc`](catalog-pg-proc.html).`oid`)<br/><br/> OID of the function to return the difference between two element values as `double precision`, or zero if none|

`rngsubopc` (plus `rngcollation`, if the element type is collatable) determines the sort ordering used by the range type. `rngcanonical` is used when the element type is discrete. `rngsubdiff` is optional but should be supplied to improve performance of GiST indexes on the range type.

---

|[Prev](catalog-pg-publication-rel.html)|[Up](catalogs.html)| [Next](catalog-pg-replication-origin.html)|
|:--------------------------------------|:-----------------:|------------------------------------------:|
|      52.40. `pg_publication_rel`      |[Home](index.html) |       52.42. `pg_replication_origin`      |

 // \<![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.'); })(); } // ]]\>