Re: cache lookup failed from empty plpythonu function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: cache lookup failed from empty plpythonu function
Дата
Msg-id 5594.1359146446@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: cache lookup failed from empty plpythonu function  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: cache lookup failed from empty plpythonu function  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-bugs
Andres Freund <andres@2ndquadrant.com> writes:
> quite possibly doesn't work if copied from here but for quicker viewing:

> CREATE OR REPLACE FUNCTION "foo():
>     pass

> import os
> os._exit(1)
> def "() RETURNS void LANGUAGE plpythonu AS $$pass$$;

> Yep:
> LOG:  server process (PID 29317) exited with exit code 1

Ooops.  Good thing plpython is already superuser-only, or this would be
a security problem.  So should we stop including the SQL function name
in the python name?

            regards, tom lane

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: cache lookup failed from empty plpythonu function
Следующее
От: Andres Freund
Дата:
Сообщение: Re: cache lookup failed from empty plpythonu function