Skip site navigation (1) Skip section navigation (2)

Re: [PATCHES] Intervals within information_schema

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org, Greg Sabino Mullane <greg(at)turnstep(dot)com>
Subject: Re: [PATCHES] Intervals within information_schema
Date: 2006-08-25 06:34:53
Message-ID: 200608250834.53946.peter_e@gmx.net (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
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', 'HOUR TO 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/

In response to

Responses

pgsql-hackers by date

Next:From: Albe LaurenzDate: 2006-08-25 07:04:18
Subject: 8.2 new features
Previous:From: Guillaume SmetDate: 2006-08-25 06:22:37
Subject: Re: autovacuum cannot start when connection is full

pgsql-patches by date

Next:From: Böszörményi ZoltánDate: 2006-08-25 07:31:42
Subject: Performance testing of COPY (SELECT) TO
Previous:From: Tom LaneDate: 2006-08-25 04:10:36
Subject: Re: CREATE INDEX ... ONLINE

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group