Re: Question about user/database-level parameters

From: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
To: "Japin Li" <japinli(at)hotmail(dot)com>
Cc: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Question about user/database-level parameters
Date: 2022-08-04 11:29:57
Message-ID: dc32294f-6148-4463-a3e4-9ee03e5a87eb@manitou-mail.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Japin Li wrote:

> However, if the database is in production, we cannot go into single-user
> mode, should we provide an option to change this behavior on the fly?

It already exists, through PGOPTIONS, which appears to work
for local_preload_libraries, in a quick test.

That is, you can log in by invoking psql with:
PGOPTIONS="-c local_preload_libraries="
and issue the ALTER USER to reset things back to normal
without stopping the instance.

Best regards,
--
Daniel Vérité
https://postgresql.verite.pro/
Twitter: @DanielVerite

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2022-08-04 11:31:32 Re: making relfilenodes 56 bits
Previous Message houzj.fnst@fujitsu.com 2022-08-04 11:26:18 RE: Data is copied twice when specifying both child and parent table in publication