1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Implement information schema interval_type columns

Also correct reporting of interval precision when field restrictions
are specified in the typmod.
This commit is contained in:
Peter Eisentraut
2011-07-13 20:30:40 +03:00
parent 80a1d16935
commit 0527a454ec
2 changed files with 51 additions and 7 deletions

View File

@ -483,7 +483,15 @@
<row>
<entry><literal>interval_type</literal></entry>
<entry><type>character_data</type></entry>
<entry>Not yet implemented</entry>
<entry>
If <literal>data_type</literal> identifies an interval type,
this column contains the specification which fields the
intervals include for this attribute, e.g., <literal>YEAR TO
MONTH</literal>, <literal>DAY TO SECOND</literal>, etc. If no
field restrictions were specified (that is, the interval
accepts all fields), and for all other data types, this field
is null.
</entry>
</row>
<row>
@ -1343,7 +1351,15 @@
<row>
<entry><literal>interval_type</literal></entry>
<entry><type>character_data</type></entry>
<entry>Not yet implemented</entry>
<entry>
If <literal>data_type</literal> identifies an interval type,
this column contains the specification which fields the
intervals include for this column, e.g., <literal>YEAR TO
MONTH</literal>, <literal>DAY TO SECOND</literal>, etc. If no
field restrictions were specified (that is, the interval
accepts all fields), and for all other data types, this field
is null.
</entry>
</row>
<row>
@ -2144,7 +2160,15 @@
<row>
<entry><literal>interval_type</literal></entry>
<entry><type>character_data</type></entry>
<entry>Not yet implemented</entry>
<entry>
If <literal>data_type</literal> identifies an interval type,
this column contains the specification which fields the
intervals include for this domain, e.g., <literal>YEAR TO
MONTH</literal>, <literal>DAY TO SECOND</literal>, etc. If no
field restrictions were specified (that is, the interval
accepts all fields), and for all other data types, this field
is null.
</entry>
</row>
<row>