On Fri, Sep 18, 2026 at 4:43 PM Ajin Cherian <[email protected]> wrote:
>
> Now for a possible fix. Your patch puts the recheck right after the
> event trigger fires. That is inside the per-table loop in
> ATRewriteTables(). The DEFAULT expression runs later in that same
> loop, during the actual rewrite of that table in ATRewriteTable(). So
> the recheck happens too early for this case.
>
> A better place is after the whole loop finishes. This means every
> table has already been rewritten. All DEFAULT and CHECK functions have
> already run. Only then do we check persistence again, for every table
> in the list.
>

Here's a patch with this change incorporated.

regards,
Ajin Cherian
Fujitsu Australia

Attachment: v2-0001-Recheck-table-persistence-after-table_rewrite-tri.patch
Description: Binary data

Reply via email to