| From: | Quan Zongliang <quanzongliang(at)yeah(dot)net> |
|---|---|
| To: | Dongpo Liu <poe(dot)liu(at)pm(dot)me>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: [PATCH] Remove unused include from analyze.c |
| Date: | 2026-07-23 02:23:24 |
| Message-ID: | 3967940b-67bb-41d8-992d-16b0262f8b00@yeah.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 7/5/26 9:27 PM, Dongpo Liu wrote:
> Hi hackers,
>
> While reading the ANALYZE code, I noticed that
> src/backend/commands/analyze.c still includes storage/procarray.h,
> but nothing in the file uses it anymore.
>
> Commit 284925508ae removed the call to
> GetOldestNonRemovableTransactionId() from acquire_sample_rows(), which
> was the last reference to anything declared in that header. The #include
> was left behind.
>
> The attached patch removes it. The file compiles cleanly without it,
> and I verified that no other symbol from procarray.h is referenced there.
>
Agree.
Furthermore, I also discovered that there are other files that contain
this unnecessary references. Please take a look at the new patch in the
attachment.
--
Quan Zongliang
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-Remove-unnecessary-include-storage-procarray.h.patch | text/plain | 3.0 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Paul Kim | 2026-07-23 02:26:35 | Re: Restore vacuum_delay_point() in GIN posting-tree leaf vacuum |
| Previous Message | Alberto Piai | 2026-07-22 23:06:56 | Re: tablecmds: fix bug where index rebuild loses replica identity on partitions |