|
1 | | -<!-- $PostgreSQL: pgsql/doc/src/sgml/information_schema.sgml,v 1.38 2009/02/06 21:15:11 tgl Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/information_schema.sgml,v 1.39 2009/06/10 07:03:34 petere Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="information-schema"> |
4 | 4 | <title>The Information Schema</title> |
|
395 | 395 | <entry><literal>datetime_precision</literal></entry> |
396 | 396 | <entry><type>cardinal_number</type></entry> |
397 | 397 | <entry> |
398 | | - If <literal>data_type</literal> identifies a date, time, or |
399 | | - interval type, the declared precision; null for all other data |
400 | | - types or if no precision was declared. |
| 398 | + If <literal>data_type</literal> identifies a date, time, |
| 399 | + timestamp, or interval type, this column contains the (declared |
| 400 | + or implicit) fractional seconds precision of the type for this |
| 401 | + attribute, that is, the number of decimal digits maintained |
| 402 | + following the decimal point in the seconds value. For all |
| 403 | + other data types, this column is null. |
401 | 404 | </entry> |
402 | 405 | </row> |
403 | 406 |
|
|
995 | 998 | <entry><literal>datetime_precision</literal></entry> |
996 | 999 | <entry><type>cardinal_number</type></entry> |
997 | 1000 | <entry> |
998 | | - If <literal>data_type</literal> identifies a date, time, or |
999 | | - interval type, the declared precision; null for all other data |
1000 | | - types or if no precision was declared. |
| 1001 | + If <literal>data_type</literal> identifies a date, time, |
| 1002 | + timestamp, or interval type, this column contains the (declared |
| 1003 | + or implicit) fractional seconds precision of the type for this |
| 1004 | + column, that is, the number of decimal digits maintained |
| 1005 | + following the decimal point in the seconds value. For all |
| 1006 | + other data types, this column is null. |
1001 | 1007 | </entry> |
1002 | 1008 | </row> |
1003 | 1009 |
|
|
1729 | 1735 | <entry><type>cardinal_number</type></entry> |
1730 | 1736 | <entry> |
1731 | 1737 | If the domain has a numeric type, this column contains the |
1732 | | - (declared or implicit) precision of the type for this column. |
| 1738 | + (declared or implicit) precision of the type for this domain. |
1733 | 1739 | The precision indicates the number of significant digits. It |
1734 | 1740 | can be expressed in decimal (base 10) or binary (base 2) terms, |
1735 | 1741 | as specified in the column |
|
1755 | 1761 | <entry><type>cardinal_number</type></entry> |
1756 | 1762 | <entry> |
1757 | 1763 | If the domain has an exact numeric type, this column contains |
1758 | | - the (declared or implicit) scale of the type for this column. |
| 1764 | + the (declared or implicit) scale of the type for this domain. |
1759 | 1765 | The scale indicates the number of significant digits to the |
1760 | 1766 | right of the decimal point. It can be expressed in decimal |
1761 | 1767 | (base 10) or binary (base 2) terms, as specified in the column |
|
1768 | 1774 | <entry><literal>datetime_precision</literal></entry> |
1769 | 1775 | <entry><type>cardinal_number</type></entry> |
1770 | 1776 | <entry> |
1771 | | - If the domain has a date, time, or interval type, the declared |
1772 | | - precision; null for all other data types or if no precision was |
1773 | | - declared. |
| 1777 | + If <literal>data_type</literal> identifies a date, time, |
| 1778 | + timestamp, or interval type, this column contains the (declared |
| 1779 | + or implicit) fractional seconds precision of the type for this |
| 1780 | + domain, that is, the number of decimal digits maintained |
| 1781 | + following the decimal point in the seconds value. For all |
| 1782 | + other data types, this column is null. |
1774 | 1783 | </entry> |
1775 | 1784 | </row> |
1776 | 1785 |
|
|
0 commit comments