Remove useless pointer update in StatsShmemInit()
authorMichael Paquier <michael@paquier.xyz>
Tue, 19 Aug 2025 00:54:18 +0000 (09:54 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 19 Aug 2025 00:54:18 +0000 (09:54 +0900)
commit9b7eb6f02e8d4affb225dd0aa239c8e7e0ff2cba
treec9118f899d975c01fb6af9a068251ee6c1ca71f4
parentbf9ee294e567654231c5b2fef09b8a5367907366
Remove useless pointer update in StatsShmemInit()

This pointer was not used after its last update.  This variable
assignment was most likely a vestige artifact of the earlier versions of
the patch set that have led to 5891c7a8ed8f.

This pointer update is useless, so let's remove it.  It removes one call
to pgstat_dsa_init_size(), making the code slightly easier to grasp.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://postgr.es/m/aKLsu2sdpnyeuSSc@ip-10-97-1-34.eu-west-3.compute.internal
src/backend/utils/activity/pgstat_shmem.c