public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Ron Johnson <[email protected]>
Cc: pgsql-general <[email protected]>
Subject: Re: search_path and SET ROLE
Date: Wed, 22 May 2024 07:47:06 -0700
Message-ID: <CAKFQuwb=HA4=4+DRXYHXNMZiknH_9p6Fp9upSkfw+q1qX_HY1w@mail.gmail.com> (raw)
In-Reply-To: <CANzqJaBoAkdXMkPvdXqhkBduLqpTbU7BdjyZePcuWkFnKi1SDQ@mail.gmail.com>
References: <CANzqJaBoAkdXMkPvdXqhkBduLqpTbU7BdjyZePcuWkFnKi1SDQ@mail.gmail.com>

On Wednesday, May 22, 2024, Ron Johnson <[email protected]> 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.


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: search_path and SET ROLE
  In-Reply-To: <CAKFQuwb=HA4=4+DRXYHXNMZiknH_9p6Fp9upSkfw+q1qX_HY1w@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox