From: | "Shridhar Daithankar" <shridhar_daithankar(at)persistent(dot)co(dot)in> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Timestamp with zero precision |
Date: | 2003-08-12 14:14:33 |
Message-ID: | 3F3943A1.25211.1FD3F4E4@localhost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 12 Aug 2003 at 11:02, Vilson farias wrote:
> Is there a way to set a "timestamp compatibility mode" for PostgreSQL
> 7.3.3's timestamp with older versions of database (like 7.1.2)? I'd like to
> set all timestamps to have precision = zero (hh:mm:ss only, without any
> millisecond).
>
> I'm asking this because since I upgraded from 7.1.2 to 7.3.3 all my
> aplications are raising lots and lots of errors due conversions from
> timestamps to strings and it's gonna be very hard to fix all of them and I need
> to avoid database re-creation of database structures.
Well a timestamp will always store a millisecond. It's just that it won't show
you.
May be you can create a view that will use date-time functions to select only
required part? Will that help you?
HTH
Bye
Shridhar
--
Rules for driving in New York: (1) Anything done while honking your horn is
legal. (2) You may park anywhere if you turn your four-way flashers on. (3) A
red light means the next six cars may go through the intersection.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-08-12 14:22:06 | Re: Timestamp with zero precision |
Previous Message | Tom Lane | 2003-08-12 14:12:44 | Re: 7.4Beta1 "failed to create socket: Address family not |