Re: Rule recompilation

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Rule recompilation
Дата
Msg-id Pine.LNX.4.30.0107122147540.681-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: Rule recompilation  (Jan Wieck <JanWieck@Yahoo.com>)
Список pgsql-hackers
Jan Wieck writes:

>     For most objects, there is no such "recompile" possible -  at
>     least  not  without  storing  alot more information than now.
>     Create a function and based on that  an  operator.  Then  you
>     drop  the  function and create another one. Hmmm, pg_operator
>     doesn't have the function name and argument  types,  it  only
>     knows the old functions oid. How do you find the new function
>     from here?

In these cases it'd be a lot simpler (and SQL-comforming) to implement the
DROP THING ... { RESTRICT | CASCADE } options.  This would probably catch
most honest user errors more cleanly than trying to automatically
recompile things that perhaps aren't even meant to fit together any
longer.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Rule recompilation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Rule recompilation