Re: Two issues with REFRESH MATERIALIZED VIEW CONCURRENTLY

Поиск
Список
Период
Сортировка
От cca5507
Тема Re: Two issues with REFRESH MATERIALIZED VIEW CONCURRENTLY
Дата
Msg-id tencent_7FA4F0B1D63BE55A8608EFF600CD4E371405@qq.com
обсуждение
Ответ на Re: Two issues with REFRESH MATERIALIZED VIEW CONCURRENTLY  ("cca5507" <cca5507@qq.com>)
Ответы Re: Two issues with REFRESH MATERIALIZED VIEW CONCURRENTLY
Список pgsql-bugs
> I think we might want the "*=" operator treat NULL as not equal to NULL and
> this is why we add "IS NOT NULL" to the duplicate detection query.
> 
> Your patch treats NULL as equal to NULL, which is different from the SQL
> standard, may confuse users.
> 
> So I think we should make the "*=" operator treat NULL as not equal to NULL
> or add a new operator to implement it. Thoughts?

Attach a patch. I add a new built-in function called record_image_eq_variant
which considers two NULLs not equal so that each row can match at most one
row during the full join.

--
Regards,
ChangAo Chen

Вложения

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