From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Thom Brown <thom(at)linux(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Incorrectly reporting config errors |
Date: | 2014-01-21 21:13:11 |
Message-ID: | CA+TgmoZsxmiHEjXw5ZmFQLXS7GMGR2+8rC6gBArpTMXHeH_myQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Jan 21, 2014 at 3:37 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>> I kind of agree with Thom. I understand why it's doing what it's
>> doing, but it still seems sort of lame.
>
> Well, the point of the message is to report that we failed to apply
> all the settings requested by the file. If you prefer some wording
> squishier than "error", we could bikeshed the message phrasing.
> But I don't think we should suppress the message entirely; nor does
> it seem worthwhile to try to track whether all the failures were of
> precisely this type.
Well, to me the whole thing smacks of:
LOG: there is a problem
LOG: please be aware that we logged a message about a problem
The only real argument for the message:
LOG: configuration file "/home/thom/Development/data/postgresql.conf"
contains errors; unaffected changes were applied
...is that somebody might think that the presence of a single error
caused all the changes to be ignored. And there's a good reason they
might think that: we used to do it that way. But on the flip side, if
we emitted a LOG or WARNING message every time the user did something
that works in a way incompatible with previous releases, we'd go
insane. So I think the argument for just dumping that message
altogether is actually pretty good.
Bikeshedding the wording is, of course, another viable option. For
that matter, ignoring the problem is a pretty viable option, too. :-)
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2014-01-21 21:21:03 | Re: GIN improvements part 1: additional information |
Previous Message | Josh Berkus | 2014-01-21 21:12:42 | pg_istready and older versions |