Re: How to execute 'set session role' from plpgsql function? - Mailing list pgsql-general

From Oleg Vasylenko
Subject Re: How to execute 'set session role' from plpgsql function?
Date
Msg-id E1KUma8-000B58-00.pulp-mail-ru@f213.mail.ru
Whole thread Raw
List pgsql-general
 Thanks. You suggestion helped me to find a solution!

 DECLARE
    ...
    query text;
 BEGIN
    ....
    query := query :='SET SESSION ROLE ' || wishedrole;
    EXECUTE query;
    ......



pgsql-general by date:

Previous
From: "Roderick A. Anderson"
Date:
Subject: Re: [Q] DNS(bind) ER model
Next
From: "Dmitry Koterov"
Date:
Subject: Open source PostgreSQL type parsers in PHP?