Re: Timestamp, fractional seconds problem - Mailing list pgsql-hackers

From Thomas Lockhart
Subject Re: Timestamp, fractional seconds problem
Date
Msg-id 3BBCCE4A.B1AE201F@fourpalms.org
Whole thread Raw
In response to Timestamp, fractional seconds problem  (Laurette Cisneros <laurette@nextbus.com>)
Responses Re: Timestamp, fractional seconds problem
List pgsql-hackers
> > ... then trailing zeros are hacked out,
> > two digits at a time.
> I was wondering why it seemed to always want to produce an even number
> of fractional digits.  Why are you doing it 2 at a time and not 1?
> I should think timestamp(1) would produce 1 fractional digit, not
> two digits of which the second is always 0 ...

Hmm. Good point wrt timestamp(1). I hack out two digits at a time to get
convergence on a behavior consistant with previous releases of having
(at least) two digits of precision (not one or three). I was trying to
minimize the impact of the other changes.

Note that another "arbitrary difference" is that, by default, TIMESTAMP
is actually TIMESTAMP WITH TIME ZONE. SQL99 specifies otherwise, but
there would seem to be fewer porting and upgrade issues for 7.2 if we
choose the current behavior.

Not sure where pg_dump and other utilities gin up the SQL9x type names,
but we should fix things during beta to be consistant.
                     - Thomas


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Timestamp, fractional seconds problem
Next
From: Lamar Owen
Date:
Subject: Re: cvs problem