Re: ALTER DATABASE SET not working as expected?

From: Tim Uckun <timuckun(at)gmail(dot)com>
To: Ian Lawrence Barwick <barwick(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: ALTER DATABASE SET not working as expected?
Date: 2021-09-09 09:58:23
Message-ID: CAGuHJrOVK3qon==X5Y1YzvTCwmB-uNK-aHyHj8z+P7JWY1qLog@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ok thanks.

On Thu, Sep 9, 2021 at 9:06 PM Ian Lawrence Barwick <barwick(at)gmail(dot)com> wrote:
>
> 2021年9月9日(木) 16:53 Tim Uckun <timuckun(at)gmail(dot)com>:
> >
> > This seems simple enough but it's not working.
> >
> > alter database dbname set "blah.blah" = 'test_value' ;
> >
> > The above statement returns with no errors.
> >
> > select current_setting('blah.blah')
> >
> > The above statement returns a record with null
>
> Open a new database session and you should see the setting.
>
> > Also how long does the "ALTER DATABASE SET" last? Will it survive a
> > shutdown and restart?
>
> Yes.
>
>
> Regards
>
> Ian Barwick
>
> --
> EnterpriseDB: https://www.enterprisedb.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Michael 2021-09-09 14:51:21 Re: How to observe plan_cache_mode transition from custom to generic plan?
Previous Message Simon Riggs 2021-09-09 09:16:37 Re: Subscriber to Get Only Some of The Tables From Publisher