Re: AW: Cast INTEGER to BIT confusion

Поиск
Список
Период
Сортировка
От Erik Wienhold
Тема Re: AW: Cast INTEGER to BIT confusion
Дата
Msg-id 912969400.228946.1692109666429@office.mailbox.org
обсуждение исходный текст
Ответ на AW: Cast INTEGER to BIT confusion  ("[Quipsy] Markus Karg" <karg@quipsy.de>)
Список 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 по дате отправления:

Предыдущее
От: David Gilman
Дата:
Сообщение: Re: Query plan regression between CTE and views
Следующее
От: Erik Wienhold
Дата:
Сообщение: Re: AW: Cast INTEGER to BIT confusion