Re: search_path and SET ROLE

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: search_path and SET ROLE
Date: 2024-05-22 14:47:06
Message-ID: CAKFQuwb=HA4=4+DRXYHXNMZiknH_9p6Fp9upSkfw+q1qX_HY1w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wednesday, May 22, 2024, Ron Johnson <ronljohnsonjr(at)gmail(dot)com> wrote:
>
>
> It seems that the search_path of the role that you SET ROLE to does not
> become the new search_path.
>
> Am I missing something, or is that PG's behavior?
>

Yes, attaching a setting to a non-login role is basically pointless as
those settings are only applied during the login process.

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2024-05-22 14:48:04 Re: search_path and SET ROLE
Previous Message Ron Johnson 2024-05-22 14:27:41 search_path and SET ROLE