| From: | Amit Langote <amitlangote09(at)gmail(dot)com> |
|---|---|
| To: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | stale comment about locking in ExecInitModifyTable() |
| Date: | 2026-12-01 02:52:07 |
| Message-ID: | CA+HiwqGKOK2=+skryowUwjXZ_mZ1oeq9oBjVtdg+sUvuLc7BXw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Subject: Remove stale comment about locking in ExecInitModifyTable()
Hi,
While looking at ExecInitModifyTable() for another patch, I noticed
that a comment there still says that ExecDoInitialPruning() takes care
of locking the first result relation:
* In either case, it doesn't matter which result relation is kept, so we
* just keep the first one, if all others have been pruned. See also,
* ExecDoInitialPruning(), which ensures that this first result relation
* has been locked.
That sentence came in with my 28317de723, along with the code in
ExecDoInitialPruning() that it refers to, which locked the first
result relation of each ModifyTable node. 1722d5eb05 (mine too)
removed that code but left the sentence behind.
The attached patch removes it. I'm inclined to back-patch this to v18,
where the sentence first appeared.
--
Thanks, Amit Langote
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-Remove-stale-comment-about-locking-in-ExecInitMod.patch | application/octet-stream | 1.4 KB |
| From | Date | Subject | |
|---|---|---|---|
| Previous Message | Kirill Reshke | 2026-12-01 02:38:50 | Re: Should we add timing output to pg_upgrade? |