Re: log_min_messages shows debug instead of debug2 - Mailing list pgsql-hackers

From Robert Haas
Subject Re: log_min_messages shows debug instead of debug2
Date
Msg-id CA+TgmobTWhCE_k8mKW+S3P4Rizz-4AZcax_9XjDjf0G0fn24Ng@mail.gmail.com
Whole thread Raw
In response to Re: log_min_messages shows debug instead of debug2  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: log_min_messages shows debug instead of debug2  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
List pgsql-hackers
On Wed, May 16, 2018 at 11:28 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>> On Tue, May 15, 2018 at 4:46 AM, Ideriha, Takeshi
>> <ideriha.takeshi@jp.fujitsu.com> wrote:
>>> I noticed that if log_min_messages is set to ‘debug2’, it shows ‘debug’
>>> instead of debug2.
>
>> Seems worth changing to me.  Anyone else think differently?
>
> I think the current behavior was intentional at some point, probably
> with the idea that if you put in "debug" it should come out as "debug".

Hmm, that's an angle I hadn't considered.

> This patch just moves the discrepancy.  Still, it's more precise to
> print debug2, so I'm okay with changing.

OK.  Let's see if anyone else has an opinion.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Postgres 11 release notes
Next
From: Heikki Linnakangas
Date:
Subject: Re: Memory unit GUC range checks