Re: Timestamp operator error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Josh Berkus" <josh(at)agliodbs(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Timestamp operator error
Date: 2002-02-26 05:10:44
Message-ID: 27477.1014700244@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Josh Berkus" <josh(at)agliodbs(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2002-02-26 05:20:02 Re: Timestamp operator error
Previous Message Josh Berkus 2002-02-26 05:03:39 Re: Timestamp operator error