Re: AW: Cast INTEGER to BIT confusion - Mailing list pgsql-general

From Erik Wienhold
Subject Re: AW: Cast INTEGER to BIT confusion
Date
Msg-id 912969400.228946.1692109666429@office.mailbox.org
Whole thread Raw
In response to AW: Cast INTEGER to BIT confusion  ("[Quipsy] Markus Karg" <karg@quipsy.de>)
List pgsql-general
> On 15/08/2023 13:59 CEST [Quipsy] Markus Karg <karg@quipsy.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



pgsql-general by date:

Previous
From: David Gilman
Date:
Subject: Re: Query plan regression between CTE and views
Next
From: Erik Wienhold
Date:
Subject: Re: AW: Cast INTEGER to BIT confusion