Re: Timestamp operator error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Timestamp operator error
Дата
Msg-id 27477.1014700244@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Timestamp operator error  ("Josh Berkus" <josh@agliodbs.com>)
Ответы Re: Timestamp operator error  ("Josh Berkus" <josh@agliodbs.com>)
Список 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 по дате отправления:

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: Timestamp operator error
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: Timestamp operator error