pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hannes Dorbath <light@theendofthetunnel.de>
To: pgsql-performance@postgresql.org
Subject: Fastest way / best practice to calculate "next birthdays"
Date: Sun, 04 May 2008 14:29:58 +0200
Message-ID: <fvka82$1b10$1@news.hub.org> (raw)

The subject basically says it all, I'm looking for the fastest 
(indexable) way to calculate the next birthdays relative to NOW() from a 
dataset of about 1 million users.

I'm currently using a function based index, but leap year handling / 
mapping February 29 to February 28 gives me some headaches.

Is there any best practice to do that in PostgreSQL?


-- 
Best regards,
Hannes Dorbath



view thread (11+ messages)  latest in thread

Message-ID: <fvka82$1b10$1@news.hub.org>
Permalink:  ../fvka82$1b10$1@news.hub.org/
Also on:    postgresql.org/message-id/fvka82$1b10$1@news.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: light@theendofthetunnel.de
  Subject: Re: Fastest way / best practice to calculate "next birthdays"
  In-Reply-To: <fvka82$1b10$1@news.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox