Re: Proposal: Log inability to lock pages during vacuum - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Proposal: Log inability to lock pages during vacuum
Date
Msg-id 549333E1.2090004@vmware.com
Whole thread Raw
In response to Re: Proposal: Log inability to lock pages during vacuum  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: Proposal: Log inability to lock pages during vacuum  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
On 12/18/2014 09:41 PM, Alvaro Herrera wrote:
> Jim Nasby wrote:
>
>> We have to decide on a tradeoff here. Either we end up with two
>> different log messages (depending on scan_all) that require two
>> different translations, or we end up with a generic message that isn't
>> as clear.
>>
>> The best option I can think of for the later is something like "failed
>> initial lock attempt". That's the only thing that will be true in all
>> cases.
>
> Here's my proposal.  Instead of punting, I split the message in
> separately translatable units, and emit only the ones that apply.  The
> code is messier this way, but I think we can live with that.

Works for me.

- Heikki




pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Proposal: Log inability to lock pages during vacuum
Next
From: Alvaro Herrera
Date:
Subject: Re: Proposal: Log inability to lock pages during vacuum