On Mon, Jun 23, 2014 at 9:12 PM, Andres Freund <
andres@2ndquadrant.com> wrote:
> On 2014-06-23 19:59:10 +0530, Amit Kapila wrote:
> > 12.
> > #ifdef LWLOCK_DEBUG
> > lock->owner = MyProc;
> > #endif
> >
> > Shouldn't it be reset in LWLockRelease?
>
> That's actually intentional. It's quite useful to know the last owner
> when debugging lwlock code.
Won't it cause any problem if the last owner process exits?