Re: [PATCH] avoid buffer underflow in errfinish() - Mailing list pgsql-hackers

From Xi Wang
Subject Re: [PATCH] avoid buffer underflow in errfinish()
Date
Msg-id CAKU6vyb7RmYKcWU1r830x0861-5OQAuhKuS5GsPez44wD5hViw@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] avoid buffer underflow in errfinish()  (Heikki Linnakangas <hlinnakangas@vmware.com>)
List pgsql-hackers
On Wed, Mar 27, 2013 at 9:03 AM, Heikki Linnakangas
<hlinnakangas@vmware.com> wrote:
> Writing it like that suggests that autovac might sometimes be NULL, even if
> deadlock_state == DS_BLOCKED_BY_AUTOVACUUM. From your explanation above, I
> gather that's not possible (and I think you're right), so the NULL check is
> unnecessary. If we think it might be NULL after all, the above makes sense.

That makes sense.  Thanks for the clarification!

- xi



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Catching resource leaks during WAL replay
Next
From: Pavel Stehule
Date:
Subject: Re: plpgsql_check_function - rebase for 9.3