Re: Why *exactly* is date_trunc() not immutable ?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Why *exactly* is date_trunc() not immutable ?
Date: 2007-02-19 18:41:11
Message-ID: 20070219184111.GA24810@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Feb 18, 2007 at 12:29:17 +0100,
Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net> wrote:
>
> The date-of-birth field in our table holding patients is of
> type "timestamp with time zone". One of our patient search
> queries uses the date-of-birth field to find matches. Since
> users enter day, month, and year but not hour, minute, and
> second of the DOB we run the query with

That seems like an odd choice. Is there some reason they didn't use a type
of date? Maybe you could get them to change it?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John Cole 2007-02-19 18:47:01 Out of memory on vacuum analyze
Previous Message Frank Finner 2007-02-19 18:34:50 Re: How to force disconnections from a Perl script?