Re: Changing from security definer to security invoker withoutdropping ?

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: Changing from security definer to security invoker withoutdropping ?
Дата
Msg-id CAFj8pRAVz2knC9LOL+yvKLsU1XUpuKPMsY72-8eWfUVCnO6pdA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Changing from security definer to security invoker without dropping ?  (Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch>)
Список pgsql-general


čt 11. 6. 2020 v 9:51 odesílatel Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch> napsal:



Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, 11 June 2020 08:39, Pavel Stehule <pavel.stehule@gmail.com> wrote:

Hi

čt 11. 6. 2020 v 9:29 odesílatel Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch> napsal:
Hi,

Just curious if there is a way to switch a function from definer to invoker without dropping ?

create function foo(a int) returns int as $$ begin return $1; end $$ language plpgsql;

postgres=# alter function foo (int) security definer;
ALTER FUNCTION
postgres=# alter function foo (int) security invoker;
ALTER FUNCTION

regards

Pavel

Thanks Pavel !  Didn't realise it was that easy.

It is postgres - things are easy (almost time) or impossible :)

Pavel

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

Предыдущее
От: Laura Smith
Дата:
Сообщение: Re: Changing from security definer to security invoker without dropping ?
Следующее
От: "Sujith Kumar.S"
Дата:
Сообщение: CPU Configuration - postgres