From: | Laura Smith <n5d9xq3ti233xiyif2vp(at)protonmail(dot)ch> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | postgre <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Changing from security definer to security invoker without dropping ? |
Date: | 2020-06-11 07:51:23 |
Message-ID: | PbdhttIUMTxHPxoJrd2ceE9iOxIOSptIK0tLo_9KcZQZiJeyoPW5_uFz794Kh56vEt1h9CPIk66FLdj0HiZIN8REzWfGoqeE42gZbO_ecCU=@protonmail.ch |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Sent with ProtonMail Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, 11 June 2020 08:39, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
> Hi
>
> čt 11. 6. 2020 v 9:29 odesílatel Laura Smith <n5d9xq3ti233xiyif2vp(at)protonmail(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2020-06-11 07:55:32 | Re: Changing from security definer to security invoker without dropping ? |
Previous Message | Pavel Stehule | 2020-06-11 07:39:18 | Re: Changing from security definer to security invoker without dropping ? |