Re: Assertion failure on hot standby

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Assertion failure on hot standby
Дата
Msg-id 1290993263.4634.3142.camel@ebony
обсуждение исходный текст
Ответ на Re: Assertion failure on hot standby  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, 2010-11-26 at 01:11 -0500, Tom Lane wrote:
> 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...

Slightly neater version of same idea applied to resolve this.

-- Simon Riggs           http://www.2ndQuadrant.com/books/PostgreSQL Development, 24x7 Support, Training and Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Itagaki Takahiro
Дата:
Сообщение: Re: Patch to add a primary key using an existing index
Следующее
От: Robert Haas
Дата:
Сообщение: Re: profiling connection overhead