Avoid calling SetMatViewPopulatedState if possible

From: cca5507 <cca5507(at)qq(dot)com>
To: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Avoid calling SetMatViewPopulatedState if possible
Date: 2026-04-10 03:36:43
Message-ID: tencent_DF2D8533B5412908326F7806075B7637A108@qq.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

During refresh matview, we call SetMatViewPopulatedState unconditionally even
if the value doesn't change. Attach a small patch to optimize it.

--
Regards,
ChangAo Chen

Attachment Content-Type Size
v1-0001-Avoid-calling-SetMatViewPopulatedState-if-possibl.patch application/octet-stream 955 bytes

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2026-04-10 03:44:19 Re: Unused injection point in hash agg code
Previous Message Jeff Davis 2026-04-10 03:33:49 Re: [19] CREATE SUBSCRIPTION ... SERVER