Re: Anonymous code block with parameters

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Anonymous code block with parameters
Дата
Msg-id 20140918113531.GB24527@svana.org
обсуждение исходный текст
Ответ на Re: Anonymous code block with parameters  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: Anonymous code block with parameters  (Marko Tiikkaja <marko@joh.to>)
Список pgsql-hackers
On Wed, Sep 17, 2014 at 10:17:22PM +0200, Pavel Stehule wrote:
> > Because you still have to do
> >
> >     SELECT pg_temp.my_temp_function(blah);
> >
> > to execute it.
> >
>
> this problem should be solvable. I can to use a temporary tables without
> using pg_temp schema.

Umm, IIRC it used to work that way but was changed to work like this.
IIRC the reason was that anyone can create functions in the temp
tablespace and thus hijack other functions that more priviledged
functions might call.

Or something like that. I think it was even a CVE.

Have a nice dat,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> He who writes carelessly confesses thereby at the very outset that he does
> not attach much importance to his own thoughts.  -- Arthur Schopenhauer

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Collations and Replication; Next Steps
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Anonymous code block with parameters