| От | Tom Lane |
|---|---|
| Тема | Re: possible time change issue - known problem? |
| Дата | |
| Msg-id | 207.1049729831@sss.pgh.pa.us обсуждение |
| Ответ на | Re: possible time change issue - known problem? ("Dan Langille" <dan@langille.org>) |
| Ответы |
Re: possible time change issue - known problem?
|
| Список | pgsql-general |
"Dan Langille" <dan@langille.org> writes:
> I forgot to ask: Does this explain why the problem occurs under 7.2.3
> but not 7.3.2?
Say again? AFAIR this issue has been with us from the beginning.
Certainly the "regression tests fail on every DST transition day"
syndrome has been around for as long as I've been using Postgres.
> Is the Right Thing To Do(tm) this:
> select current_date, current_date-1;
> instead of this:
> select current_date, (current_date - interval '1 day')::date;
The "current_date-1" locution is no doubt more efficient as well
as more likely to do what you want. Still, it'd be nice if the
other way worked.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера