| From: | Pavan <prampalli30(at)gmail(dot)com> |
|---|---|
| To: | Raja Sai pranav <rajasaipranav0(at)gmail(dot)com> |
| Cc: | alpkeles99(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: BUG #19790: "cannot start a subtransaction ... inval messages" after "ALTER DOMAIN ... DROP CONSTRAINT" |
| Date: | 2026-12-05 18:32:11 |
| Message-ID: | CAEyqiQHb-TutyMTGM25KYubVj2RTF2GgyFqfhMePHp83nswv2A@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Hi Sai Pranav,
Just wanted to cross-link this thread with BUG #19919 / CF #7743 [1],
where I posted an alternative patch before noticing your fix on #19790
(CF #7718).
Instead of moving CacheInvalidateHeapTuple() in typecmds.c, the patch
in CF #7743 moves GetCurrentCommandId(true) from
RegisterRelcacheInvalidation() into PrepareInvalidationState() so that
all transactional invalidation paths (including manual catcache,
catalog, and relsync invalidations, as well as AlterDomainAddConstraint
or extension callers) guarantee CommandCounterIncrement() flushes
CurrentCmdInvalidMsgs.
That said, skipping CacheInvalidateHeapTuple() when !found in
AlterDomainDropConstraint() (as your patch does) is also a nice
cleanup on its own — perhaps both make sense together, or a committer
can weigh in on the preferred approach.
[1] https://postgr.es/m/flat/19919-c286b9e822bf23b9(at)postgresql(dot)org
Regards,
Pavan
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavan | 2026-12-05 18:38:59 | Re: BUG #19790: "cannot start a subtransaction ... inval messages" after "ALTER DOMAIN ... DROP CONSTRAINT" |
| Previous Message | Raja Sai pranav | 2026-12-05 18:11:38 | Re: btree_gist: <-> fails on same-sign infinite intervals |