timestamp precision - can I control precision at select time or set for all time?

Поиск
Список
Период
Сортировка
От mroyce@gmail.com
Тема timestamp precision - can I control precision at select time or set for all time?
Дата
Msg-id 1111013876.573335.284450@o13g2000cwo.googlegroups.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Jonathan Daugherty
Дата:
Сообщение: Re: Group by 15 Minute Steps
Следующее
От: "Chandan_Kumaraiah"
Дата:
Сообщение: query