Re: Re: Email to hackers for test coverage

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Re: Email to hackers for test coverage
Дата
Msg-id 20190828033023.GE1965@paquier.xyz
обсуждение исходный текст
Ответ на Re: Re: Email to hackers for test coverage  ("movead.li@highgo.ca" <movead.li@highgo.ca>)
Ответы Re: Re: Email to hackers for test coverage  (Peter Geoghegan <pg@bowt.ie>)
Список pgsql-hackers
On Tue, Aug 27, 2019 at 03:57:20PM +0800, movead.li@highgo.ca wrote:
> I think your way is much better, so I change the patch and it is
> 'regression_20190827.patch' now.

Thanks for the new patch, I have committed the part for float4.

> There are code lines related to NULL values in
> ApplySortAbbrevFullComparator(), but I think the code lines for
> comparing a NULL and a NOT NULL can be never reached, because it is
> handled in ApplySortComparator() which is called before
> ApplySortAbbrevFullComparator(). So I think it is no use to INSERT
> a NULL value.

But I am not sold to that part yet, for three reasons:
- numeric is not a test suite designed for sorting, and hijacking it
to do so it not a good approach.
- it would be good to get coverage for the two extra code paths while
we are on it with NULL datums.
- There is no need for two INSERT queries, I am getting the same
coverage with only one.

Please note that I have not looked in details where we could put that,
but perhaps Robert and Peter G who worked on 4ea51cd to add support
for abbreviated keys have some ideas, so I am adding them in CC for
input.
--
Michael

Вложения

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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: [HACKERS] [WIP] Effective storage of duplicates in B-tree index.
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: REINDEX filtering in the backend