Re: A micro-optimisation for ProcSendSignal()

Поиск
Список
Период
Сортировка
От Soumyadeep Chakraborty
Тема Re: A micro-optimisation for ProcSendSignal()
Дата
Msg-id CAE-ML+8mZfCFEnDuBFF-+-xpCOPVZxrPnJFbT7Ft5L_en4m84A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: A micro-optimisation for ProcSendSignal()  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: A micro-optimisation for ProcSendSignal()
Список pgsql-hackers
Hi Thomas,

You might have missed a spot to initialize SERIALIZABLE_XACT->pgprocno in
InitPredicateLocks(), so:

+ PredXact->OldCommittedSxact->pgprocno = INVALID_PGPROCNO;

Slightly tangential: we should add a comment to PGPROC.pgprocno, for more
immediate understandability:

+ int pgprocno; /* index of this PGPROC in ProcGlobal->allProcs */

Also, why don't we take the opportunity to get rid of SERIALIZABLEXACT->pid? We
took a stab. Attached is v2 of your patch with these changes.

Regards,
Ashwin and Deep

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: postgres_fdw - make cached connection functions tests meaningful
Следующее
От: Andy Fan
Дата:
Сообщение: Re: UniqueKey on Partitioned table.