From: | Erik Wienhold <ewie(at)ewie(dot)name> |
---|---|
To: | "[Quipsy] Markus Karg" <karg(at)quipsy(dot)de>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: AW: Cast INTEGER to BIT confusion |
Date: | 2023-08-15 14:27:46 |
Message-ID: | 912969400.228946.1692109666429@office.mailbox.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> On 15/08/2023 13:59 CEST [Quipsy] Markus Karg <karg(at)quipsy(dot)de> wrote:
>
> Is setting the search path something that has to be done for each new
> connection / each user, or is this something static and global for the
> database?
The search path is set per connection and the initial search path can be
configured on the database and/or individual roles:
1. ALTER DATABASE mydb SET search_path = ...
2. ALTER ROLE myrole SET search_path = ...
3. ALTER ROLE myrole IN DATABASE mydb SET search_path = ...
Those three statements do not affect your current connection though. Users can
still set a different search path after connecting.
--
Erik
From | Date | Subject | |
---|---|---|---|
Next Message | Erik Wienhold | 2023-08-15 14:27:53 | Re: AW: Cast INTEGER to BIT confusion |
Previous Message | David Gilman | 2023-08-15 12:59:33 | Re: Query plan regression between CTE and views |