|
4607 | 4607 | </indexterm>
|
4608 | 4608 |
|
4609 | 4609 | <para>
|
4610 |
| - The catalog <structname>pg_range</structname> stores information about range types. |
| 4610 | + The catalog <structname>pg_range</structname> stores information about |
| 4611 | + range types. This is in addition to the types' entries in |
| 4612 | + <link linkend="catalog-pg-type"><structname>pg_type</structname></link>. |
4611 | 4613 | </para>
|
4612 | 4614 |
|
4613 | 4615 | <table>
|
|
4628 | 4630 | <entry><structfield>rngtypid</structfield></entry>
|
4629 | 4631 | <entry><type>oid</type></entry>
|
4630 | 4632 | <entry><literal><link linkend="catalog-pg-type"><structname>pg_type</structname></link>.oid</literal></entry>
|
4631 |
| - <entry>The type that is a range type</entry> |
| 4633 | + <entry>OID of the range type</entry> |
4632 | 4634 | </row>
|
4633 | 4635 |
|
4634 | 4636 | <row>
|
4635 | 4637 | <entry><structfield>rngsubtype</structfield></entry>
|
4636 | 4638 | <entry><type>oid</type></entry>
|
4637 | 4639 | <entry><literal><link linkend="catalog-pg-type"><structname>pg_type</structname></link>.oid</literal></entry>
|
4638 |
| - <entry>Subtype of this range type, e.g. <type>integer</type> is the subtype of <type>int4range</type></entry> |
| 4640 | + <entry>OID of the element type (subtype) of this range type</entry> |
4639 | 4641 | </row>
|
4640 | 4642 |
|
4641 | 4643 | <row>
|
4642 | 4644 | <entry><structfield>rngcollation</structfield></entry>
|
4643 | 4645 | <entry><type>oid</type></entry>
|
4644 | 4646 | <entry><literal><link linkend="catalog-pg-collation"><structname>pg_collation</structname></link>.oid</literal></entry>
|
4645 |
| - <entry>The collation used when comparing range boundaries</entry> |
| 4647 | + <entry>OID of the collation used for range comparisons, or 0 if none</entry> |
4646 | 4648 | </row>
|
4647 | 4649 |
|
4648 | 4650 | <row>
|
4649 | 4651 | <entry><structfield>rngsubopc</structfield></entry>
|
4650 | 4652 | <entry><type>oid</type></entry>
|
4651 | 4653 | <entry><literal><link linkend="catalog-pg-opclass"><structname>pg_opclass</structname></link>.oid</literal></entry>
|
4652 |
| - <entry>The operator class used when comparing range boundaries</entry> |
| 4654 | + <entry>OID of the subtype's operator class used for range comparisons</entry> |
4653 | 4655 | </row>
|
4654 | 4656 |
|
4655 | 4657 | <row>
|
4656 | 4658 | <entry><structfield>rngcanonical</structfield></entry>
|
4657 | 4659 | <entry><type>regproc</type></entry>
|
4658 | 4660 | <entry><literal><link linkend="catalog-pg-proc"><structname>pg_proc</structname></link>.oid</literal></entry>
|
4659 |
| - <entry>A function to convert a range into its canonical form</entry> |
| 4661 | + <entry>OID of the function to convert a range value into canonical form, |
| 4662 | + or 0 if none</entry> |
4660 | 4663 | </row>
|
4661 | 4664 |
|
4662 | 4665 | <row>
|
4663 | 4666 | <entry><structfield>rngsubdiff</structfield></entry>
|
4664 | 4667 | <entry><type>regproc</type></entry>
|
4665 | 4668 | <entry><literal><link linkend="catalog-pg-proc"><structname>pg_proc</structname></link>.oid</literal></entry>
|
4666 |
| - <entry>A function to return the distance between two lower and upper bound, as a <type>double precision</type>. Used for GiST support</entry> |
| 4669 | + <entry>OID of the function to return the difference between two element |
| 4670 | + values as <type>double precision</type>, or 0 if none</entry> |
4667 | 4671 | </row>
|
4668 | 4672 | </tbody>
|
4669 | 4673 | </tgroup>
|
4670 | 4674 | </table>
|
4671 | 4675 |
|
| 4676 | + <para> |
| 4677 | + <structfield>rngsubopc</> (plus <structfield>rngcollation</>, if the |
| 4678 | + element type is collatable) determines the sort ordering used by the range |
| 4679 | + type. <structfield>rngcanonical</> is used when the element type is |
| 4680 | + discrete. <structfield>rngsubdiff</> is optional but should be supplied to |
| 4681 | + improve performance of GiST indexes on the range type. |
| 4682 | + </para> |
| 4683 | + |
4672 | 4684 | </sect1>
|
4673 | 4685 |
|
4674 | 4686 | <sect1 id="catalog-pg-rewrite">
|
|
6059 | 6071 | <literal>c</literal> for a composite type (e.g., a table's row type),
|
6060 | 6072 | <literal>d</literal> for a domain,
|
6061 | 6073 | <literal>e</literal> for an enum type,
|
6062 |
| - or <literal>p</literal> for a pseudo-type. |
| 6074 | + <literal>p</literal> for a pseudo-type, or |
| 6075 | + <literal>r</literal> for a range type. |
6063 | 6076 | See also <structfield>typrelid</structfield> and
|
6064 | 6077 | <structfield>typbasetype</structfield>.
|
6065 | 6078 | </entry>
|
|
6429 | 6442 | <entry><literal>P</literal></entry>
|
6430 | 6443 | <entry>Pseudo-types</entry>
|
6431 | 6444 | </row>
|
| 6445 | + <row> |
| 6446 | + <entry><literal>R</literal></entry> |
| 6447 | + <entry>Range types</entry> |
| 6448 | + </row> |
6432 | 6449 | <row>
|
6433 | 6450 | <entry><literal>S</literal></entry>
|
6434 | 6451 | <entry>String types</entry>
|
|
0 commit comments