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

Поиск
Список
Период
Сортировка
От Lutz Horn
Тема Re: Select "todays" timestamps in an index friendly way
Дата
Msg-id 20181023135728.GE21523@lutz-pc.ecm4u.intra
обсуждение исходный текст
Ответ на Re: Select "todays" timestamps in an index friendly way  (Francisco Olarte <folarte@peoplecall.com>)
Ответы Re: Select "todays" timestamps in an index friendly way  (Francisco Olarte <folarte@peoplecall.com>)
Список pgsql-general
On Tue, Oct 23, 2018 at 03:50:14PM +0200, Francisco Olarte wrote:
> It'is not as the problem was stated. Although ts defaulted to now(),
> and it is probably defaulted, nothing prohibits him from inserting
> timestamps in the future.

Yes, this table is only used as an example for the technical question.
In my real use case there are columns like "due_date" which usually
contain future dates inserted by application code.

> the  "timestamps in today" pattern is commonly used in calendaring
> applications, which usually insert appointments in the future and
> recover this way to print "todays schedule".

Exactly. The application must be able to execute queries like "give me
all my tasks due today" without having to use a concrete value for
"today".

Lutz


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

Предыдущее
От: Francisco Olarte
Дата:
Сообщение: Re: Select "todays" timestamps in an index friendly way
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Enabling bdr in multiple databases on the same postgresql instance/cluster