Re: Function problems, cache lookup failed

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Function problems, cache lookup failed
Дата
Msg-id 7021.1028210469@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Function problems, cache lookup failed  (Archibald Zimonyi <archie@netg.se>)
Список pgsql-sql
Archibald Zimonyi <archie@netg.se> writes:
> ERROR:  fmgr_info: function 18308: cache lookup failed
> I have no idea what this is, can anyone help me?

The aggregate links to the function by OID.  You deleted the function
and recreated it, which means it's a new function with a new OID and
so the aggregate is broken.

You'll need to drop and recreate the aggregate too.  Next time use
CREATE OR REPLACE FUNCTION so you don't need to do that.  (With
CREATE OR REPLACE, you are just modifying the existing function,
so its OID doesn't change.)

7.3 will prevent this sort of mistake...
        regards, tom lane


В списке pgsql-sql по дате отправления:

Предыдущее
От: Christoph Haller
Дата:
Сообщение: Re: determine if a table exists
Следующее
От: Michelle Murrain
Дата:
Сообщение: Re: Please Help me