| From: | Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com> |
|---|---|
| To: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Remove useless pointer advance in StatsShmemInit() |
| Date: | 2025-08-18 09:04:59 |
| Message-ID: | aKLsu2sdpnyeuSSc@ip-10-97-1-34.eu-west-3.compute.internal |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi hackers,
While reviewing [1], I noticed a useless pointer advance and saw that StatsShmemInit()
is doing the same.
As StatsShmemInit() is existing code, let's fix it: the pointer is not used after
its last advance, so that advance is unnecessary and can be removed.
Regards,
--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-Remove-useless-pointer-advance-in-StatsShmemInit.patch | text/x-diff | 977 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kirill Reshke | 2025-08-18 09:05:20 | Re: test_ddl_deparse: Rename test create_sequence_1 |
| Previous Message | Michael Paquier | 2025-08-18 09:02:30 | Re: ReplicationSlotRelease() crashes when the instance is in the single user mode |