Re: Timestamp operator error - Mailing list pgsql-sql

From Tom Lane
Subject Re: Timestamp operator error
Date
Msg-id 27477.1014700244@sss.pgh.pa.us
Whole thread Raw
In response to Re: Timestamp operator error  ("Josh Berkus" <josh@agliodbs.com>)
Responses Re: Timestamp operator error  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
"Josh Berkus" <josh@agliodbs.com> writes:
> Is there a way, for example, that I could disallow the TIMESTAMP -->
>  DATE implicit conversion in my code?

Well, you could delete the date(timestamp) function from pg_proc.
However, that would prevent getting from timestamp to date even
with an explicit cast --- so you might want to put it back after
you've found all the trouble spots.

My approach would be to rename rather than delete the pg_proc entry (say
update "date" to "datexxx" in proname); then you could reverse the
rename after finding your problems.  On the other hand, if you're doing
the testing in a deletable temporary database, this isn't a problem.
        regards, tom lane


pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: Timestamp operator error
Next
From: "Josh Berkus"
Date:
Subject: Re: Timestamp operator error