Re: [PATCH] Add min() and max() aggregate functions for xid8

Поиск
Список
Период
Сортировка
От Ken Kato
Тема Re: [PATCH] Add min() and max() aggregate functions for xid8
Дата
Msg-id ab08311e1d07c584ac8ac5f59ad33730@oss.nttdata.com
обсуждение исходный текст
Ответ на Re: [PATCH] Add min() and max() aggregate functions for xid8  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Ответы Re: [PATCH] Add min() and max() aggregate functions for xid8  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Список pgsql-hackers
> +    PG_RETURN_FULLTRANSACTIONID((U64FromFullTransactionId(fxid1) >
> U64FromFullTransactionId(fxid2)) ? fxid1 : fxid2);
> 
> Shouldn't we use FullTransactionIdFollows() to compare those two fxid
> values here, instead?
> 
> +    PG_RETURN_FULLTRANSACTIONID((U64FromFullTransactionId(fxid1) <
> U64FromFullTransactionId(fxid2)) ? fxid1 : fxid2);
> 
> Shouldn't we use FullTransactionIdPrecedes() to compare those two fxid
> values here, instead?
> 
> Could you add the regression tests for those min() and max() functions 
> for xid8?

Thank you for the comments.
I sent my old version of patch by mistake.
This is the updated one.

Best wishes

-- 
Ken Kato
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION
Вложения

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: [BUG]Update Toast data failure in logical replication
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Windows now has fdatasync()