Re: [PATCHES] Intervals within information_schema - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [PATCHES] Intervals within information_schema
Date
Msg-id 200608250834.53946.peter_e@gmx.net
Whole thread Raw
Responses Re: [PATCHES] Intervals within information_schema
List pgsql-hackers
Greg Sabino Mullane wrote:
> I was looking over the "FIXME" marks within the
> information_schema.sql, and the last ones left (after my previous
> patch) are for interval_type and interval_precision. It looks to me
> as if the standard is differentiating between datetime_precision and
> interval_precision (see attached patch), so I pulled those apart (for
> one view). Does anyone know what is supposed to go into the
> interval_type field?

INTERVAL_TYPE IN
( 'YEAR', 'MONTH', 'DAY', 'HOUR', 'MINUTE', 'SECOND', 'YEAR TO MONTH', 'DAY TO HOUR', 'DAY TO MINUTE', 'DAY TO SECOND',
'HOURTO MINUTE', 'HOUR TO SECOND', 'MINUTE TO SECOND' )
 

Also, depending on which one of these is specified, the precision field 
varies in meaning.  I haven't done a complete analysis, but it might 
not be as simple as your patch suggests.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-hackers by date:

Previous
From: "Guillaume Smet"
Date:
Subject: Re: autovacuum cannot start when connection is full
Next
From: "Albe Laurenz"
Date:
Subject: 8.2 new features