Re: Feature Request: ALTER FUNCTION (or something like that)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Feature Request: ALTER FUNCTION (or something like that)
Дата
Msg-id 16805.985757574@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Feature Request: ALTER FUNCTION (or something like that)  (Joel Burton <jburton@scw.org>)
Список pgsql-hackers
Joel Burton <jburton@scw.org> writes:
> If I have your ear on the subject, tgl, is there any ugly-but-working hack
> to update the function by modifying the system tables directly?

For interpreted function languages,

UPDATE pg_proc SET prosrc = 'new body' WHERE proname = '...'

will work as long as the function name is unique.  (If not, you'd need
to also mention argument types in the WHERE.)

Again, this won't do anything to update cached copies, so backend
restarts might be needed to get the change to take effect.
        regards, tom lane


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

Предыдущее
От: "Brian Baquiran"
Дата:
Сообщение:
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: 7.1 RC1 RPM