Re: Incorrectly reporting config errors

From: Kevin Grittner <kgrittn(at)ymail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andres Freund <andres(at)2ndquadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Thom Brown <thom(at)linux(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Incorrectly reporting config errors
Date: 2014-01-22 19:11:09
Message-ID: 1390417869.28883.YahooMailNeo@web122303.mail.ne1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Kevin Grittner <kgrittn(at)ymail(dot)com> writes:
>> My preference would be to not generate noise for interim states;
>> just report net changes.
>
> Yeah.  Is it worth explicitly detecting and dropping redundant assignments
> to the same variable?  A naive check for that would be O(N^2) in the
> number of entries in the conf file, but perhaps that's still cheap enough
> in practice.  This would mean for example that
>
>   shared_buffers = 'oops'
>   shared_buffers = '128MB'
>
> would not draw an error, which doesn't bother me but might bother
> somebody.

It doesn't bother me any.

>> And don't say that a file "contains
>> errors" when we mean "those options are ignored on reload; they
>> will only take effect on restart".
>
> I'm not happy about complicating that logic even more.  I think the
> reasonable choices here are to reword that message somehow, or just
> drop it completely.

I agree.  No strong preference which,

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2014-01-22 19:18:28 Re: proposal: hide application_name from other users
Previous Message Tom Lane 2014-01-22 18:29:53 Re: Storing pg_stat_statements query texts externally, pg_stat_statements in core