From: Hannes Dorbath <light@theendofthetunnel.de>
To: Joshua D. Drake <jd@commandprompt.com>
Subject: Re: Fastest way / best practice to calculate "next birthdays"
Date: Sun, 04 May 2008 19:50:37 +0200
Message-ID: <481DF76D.3060807@theendofthetunnel.de> (raw)
In-Reply-To: <481DE036.90706@commandprompt.com>
References: <fvka82$1b10$1@news.hub.org>
<481DE036.90706@commandprompt.com>
Joshua D. Drake wrote:
> postgres=# SELECT current_date|| ' a ' || to_char(current_date, 'Day'),
> current_date + '1 Year'::interval || ' a ' || to_char(current_date + '1
> Year'::interval, 'Day') as next_birthday;
> ?column? | next_birthday
> ------------------------+---------------------------------
> 2008-05-04 a Sunday | 2009-05-04 00:00:00 a Monday
>
> ?
Sorry, I think I phrased the question badly. What I'm after basically is:
http://www.depesz.com/index.php/2007/10/26/who-has-birthday-tomorrow/
--
Best regards,
Hannes Dorbath
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, jd@commandprompt.com
Subject: Re: Fastest way / best practice to calculate "next birthdays"
In-Reply-To: <481DF76D.3060807@theendofthetunnel.de>
* 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