Re: Remove useless pointer advance in StatsShmemInit() - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Remove useless pointer advance in StatsShmemInit()
Date
Msg-id aKPMtWi1LT4-SYIn@paquier.xyz
Whole thread Raw
In response to Re: Remove useless pointer advance in StatsShmemInit()  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
List pgsql-hackers
On Mon, Aug 18, 2025 at 09:31:14AM +0000, Bertrand Drouvot wrote:
> Yeah, that's probably just a matter of taste, but I also prefer keeping the
> pointer over just doing:
>
> ctl->raw_dsa_area = (char *) ctl + MAXALIGN(sizeof(PgStat_ShmemControl));

Done as you have suggested.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Re: Improve hash join's handling of tuples with null join keys
Next
From: Masahiko Sawada
Date:
Subject: Re: Logical Replication of sequences