Skip site navigation (1) Skip section navigation (2)

Re: Proposal for Allow postgresql.conf values to be changed via SQL

From: Amit kapila <amit(dot)kapila(at)huawei(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Proposal for Allow postgresql.conf values to be changed via SQL
Date: 2012-12-02 05:19:34
Message-ID: 6C0B27F7206C9E4CA54AE035729E9C383BEA065F@szxeml509-mbx (view raw or flat)
Thread:
Lists: pgsql-hackers
On Saturday, December 01, 2012 10:00 PM Tom Lane wrote:
Amit Kapila <amit(dot)kapila(at)huawei(dot)com> writes :
> On Saturday, December 01, 2012 1:30 AM Tom Lane wrote:
>>> But having said that, it's not apparent to me why inventing SET
>>> PERSISTENT should require reserving PERSISTENT.

>> The problem is due to RESET PERSISTENT configuration_variable Syntax.
>> I think the reason is that configuration_variable name can also be
>> persistent, so its not able to resolve.


> But even if we can't make that work, it's not grounds for reserving
> PERSISTENT.  Instead I'd be inclined to forget about "RESET PERSISTENT"
>syntax and use, say, SET PERSISTENT var_name TO DEFAULT to mean that.
> (BTW, I wonder what behavior that syntax has now in your patch.)

The current behavior is 
1. "RESET PERSISTENT ..."  will delete the entry from postgresql.auto.conf
2. "SET PERSISTENT... TO DEFAULT"  will update the entry value in postgresql.auto.conf to default value

The discussion for this is at below link:
http://archives.postgresql.org/pgsql-hackers/2012-11/msg01276.php

I am not too keen to have RESET Persistent, but the only point of keeping it was that it can give user flexibility that it
can have the values to take effect from postgresql.conf even if user has executed SET Persistent.
Apart from this also user can do that by putting the configuration variable after include_dir in postgresql.conf.


With Regards,
Amit Kapila.


In response to

pgsql-hackers by date

Next:From: Amit kapilaDate: 2012-12-02 05:48:25
Subject: Re: Proposal for Allow postgresql.conf values to be changed via SQL
Previous:From: Andrew DunstanDate: 2012-12-02 04:33:25
Subject: proposal: separate databases for contrib module testing

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group