timestamp precision - can I control precision at select time or set for all time? - Mailing list pgsql-sql

From mroyce@gmail.com
Subject timestamp precision - can I control precision at select time or set for all time?
Date
Msg-id 1111013876.573335.284450@o13g2000cwo.googlegroups.com
Whole thread Raw
List pgsql-sql
I have a database with several tables that use timestamp without time
zone type. I upgraded from an older pgsql and have code that does not
expect the precision in the select output. Is there a way I can get the
effect of zero precision without modifying all the tables?

The docs say it usees "default precision" as set in the "timestamp
literal". I wasn't able to find docs describing what literals are. If
there's a way I can set this to zero precision for everything, that'd
save me a bunch of time.

with thanks,
Royce



pgsql-sql by date:

Previous
From: Jonathan Daugherty
Date:
Subject: Re: Group by 15 Minute Steps
Next
From: "Chandan_Kumaraiah"
Date:
Subject: query