Re: Select "todays" timestamps in an index friendly way

Поиск
Список
Период
Сортировка
От Lutz Horn
Тема Re: Select "todays" timestamps in an index friendly way
Дата
Msg-id 20181023101949.GC21523@lutz-pc.ecm4u.intra
обсуждение исходный текст
Ответ на Re: Select "todays" timestamps in an index friendly way  (Thomas Kellerer <spam_eater@gmx.net>)
Ответы Re: Select "todays" timestamps in an index friendly way  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-general
Hi Thomas,

On Tue, Oct 23, 2018 at 12:11:55PM +0200, Thomas Kellerer wrote:
> I typically use:
> 
>   where ts >= date '2018-10-23'
>     and ts < date '2018-10-23' + 1

But here the date is an explicit value. Francisco reworded my question:

> if your definition of today is 'same value as now() when truncated to
> days'

That's what I am (was, thanks to Francisco) looking for.

Lutz


В списке pgsql-general по дате отправления:

Предыдущее
От: "Lutz Horn"
Дата:
Сообщение: Re: Select "todays" timestamps in an index friendly way
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: Select "todays" timestamps in an index friendly way