Bad cast priority for DATE?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Bad cast priority for DATE?
Date: 2010-09-18 00:28:01
Message-ID: 4C940791.6040303@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Folks,

I was noticing that, where we have a function which has two versions,
timestamp and timestamptz (for example, date_trunc()), if I use a DATE
timestamptz is the default cast. Shouldn't timestamp without time zone
be the default? Is this something we can fix without an overhaul of the
type casting system?

--
-- Josh Berkus
PostgreSQL Experts Inc.
http://www.pgexperts.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-09-18 00:40:53 Re: Bad cast priority for DATE?
Previous Message Robert Haas 2010-09-17 23:23:14 Re: Progress indication prototype