Re: Fastest way / best practice to calculate "next birthdays"

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Fastest way / best practice to calculate "next birthdays"
Дата
Msg-id CAKFQuwZLcWw6=T6GU9rF+6DCN6+DSOgZJg1JAgOKLWG6KEUiWA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Fastest way / best practice to calculate "next birthdays"  ("er.tejaspatel88@gmail.com" <er.tejaspatel88@gmail.com>)
Ответы Re: Fastest way / best practice to calculate "next birthdays"  (Bosco Rama <postgres@boscorama.com>)
Список pgsql-performance
On Monday, May 18, 2015, er.tejaspatel88@gmail.com <er.tejaspatel88@gmail.com> wrote:
If I have to find upcoming birthdays in current week and the current week
fall into different months - how would you handle that?

Extract(week from timestamptz_column)

ISO weeks are not affected by month boundaries but do start on Monday.

David J.

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

Предыдущее
От: "er.tejaspatel88@gmail.com"
Дата:
Сообщение: Re: Fastest way / best practice to calculate "next birthdays"
Следующее
От: Florian Lohoff
Дата:
Сообщение: union all and filter / index scan -> seq scan