Re: Assertion failure on hot standby - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Assertion failure on hot standby
Date
Msg-id 28739.1290751902@sss.pgh.pa.us
Whole thread Raw
In response to Re: Assertion failure on hot standby  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: Assertion failure on hot standby
Re: Assertion failure on hot standby
List pgsql-hackers
Simon Riggs <simon@2ndQuadrant.com> writes:
> That would mean running GetCurrentTransactionId() inside LockAcquire()

> if (lockmode >= AccessExclusiveLock &&
>     locktag->locktag_type == LOCKTAG_RELATION &&
>     !RecoveryInProgress())
>     (void) GetCurrentTransactionId();

> Any objections to that fix?

Could we have a wal level test in there too please?  It's pretty awful
in any case...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [JDBC] JDBC and Binary protocol error, for some statements
Next
From: Radosław Smogura
Date:
Subject: Re: [JDBC] JDBC and Binary protocol error, for some statements