Re: More const-marking cleanup

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: More const-marking cleanup
Date: 2025-12-05 16:20:50
Message-ID: 1559237.1764951650@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com> writes:
> On Fri, Dec 05, 2025 at 09:47:56AM -0500, Tom Lane wrote:
>> Cool, how'd you find these?

> With the help of a coccinelle script. Will polish and share.

Ah. Your script didn't notice the need for const'ification of
additional variables in map_locale() :-(. I fixed that and
pushed everything except the ecpg/preproc/variable.c changes,
which I'm not too comfortable about yet. (The code coverage
report shows that large chunks of those functions are untested,
so I wonder if they worked before let alone after.)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Maxim Orlov 2025-12-05 16:36:20 Re: IPC/MultixactCreation on the Standby server
Previous Message Sami Imseih 2025-12-05 16:15:19 Re: Add wait event for CommitDelay