From: Erik Wienhold <ewie@ewie.name>
To: [Quipsy] Markus Karg <karg@quipsy.de>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: AW: Cast INTEGER to BIT confusion
Date: Tue, 15 Aug 2023 16:27:46 +0200 (CEST)
Message-ID: <912969400.228946.1692109666429@office.mailbox.org> (raw)
In-Reply-To: <dc7d35dc671e4b8196743a357356e707@quipsy.de>
References: <fbc716336d544e93b6af5e11af3e4aa0@quipsy.de>
<533487381.212078.1692100096551@office.mailbox.org>
<dc7d35dc671e4b8196743a357356e707@quipsy.de>
> 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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ewie@ewie.name, karg@quipsy.de
Subject: Re: Cast INTEGER to BIT confusion
In-Reply-To: <912969400.228946.1692109666429@office.mailbox.org>
References: <fbc716336d544e93b6af5e11af3e4aa0@quipsy.de> <533487381.212078.1692100096551@office.mailbox.org> <dc7d35dc671e4b8196743a357356e707@quipsy.de> <912969400.228946.1692109666429@office.mailbox.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox