Re: fix more casting away of qualifiers

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: fix more casting away of qualifiers
Date: 2026-08-25 08:42:34
Message-ID: 451a8e5c-3518-44c8-9a0e-5e759dd778e3@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 18.08.26 12:00, Heikki Linnakangas wrote:
> This seems hacky. Can we change BuildTupleFromCStrings() to take a const
> instead? Maybe that was part of your "difficult half" already?
>
> I guess that requires changing all the callers: You get a warning if
> pass a "char **" to a "const char **". Is there a way with some macro
> magic or something that you could accept both?
>
> All else look good to me at a quick glance.

I have committed these patches except the one above. I have an idea for
that, but I'll prepare that separately.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2026-08-25 08:45:08 Re: pgcrypto.sgml: built in -> built-in
Previous Message shveta malik 2026-08-25 08:27:15 Re: Support EXCEPT for TABLES IN SCHEMA publications