Re: cache lookup failed from empty plpythonu function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Sandro Santilli <strk(at)keybit(dot)net>, pgsql-bugs(at)postgresql(dot)org, peter_e(at)gmx(dot)net
Subject: Re: cache lookup failed from empty plpythonu function
Date: 2013-01-25 20:40:46
Message-ID: 5594.1359146446@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Andres Freund <andres(at)2ndquadrant(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2013-01-25 21:00:27 Re: cache lookup failed from empty plpythonu function
Previous Message Andres Freund 2013-01-25 20:35:01 Re: cache lookup failed from empty plpythonu function