Re: Remove useless pointer advance in StatsShmemInit()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Remove useless pointer advance in StatsShmemInit()
Date: 2025-08-19 01:00:37
Message-ID: aKPMtWi1LT4-SYIn@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2025-08-19 01:17:09 Re: Logical Replication of sequences
Previous Message Chao Li 2025-08-19 00:58:47 Re: Improve hash join's handling of tuples with null join keys