Add const qualifiers to XLogRegister*() functions

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Aleksander Alekseev <aleksander(at)timescale(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Add const qualifiers to XLogRegister*() functions
Date: 2024-08-28 08:09:27
Message-ID: dd889784-9ce7-436a-b4f1-52e4a5e577bd@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 04.10.23 16:37, Peter Eisentraut wrote:
> On 03.10.23 13:28, Aleksander Alekseev wrote:
>> While examining the code for similar places I noticed that the
>> following functions can also be const'ified:

>> - XLogRegisterData (?)
>
> I don't think this would work, at least without further work elsewhere,
> because the data is stored in XLogRecData, which has no const handling.

I got around to fixing this. Here is a patch. It allows removing a few
unconstify() calls, which is nice.

Attachment Content-Type Size
0001-Add-const-qualifiers-to-XLogRegister-functions.patch text/plain 10.0 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kirill Reshke 2024-08-28 08:18:13 [BUG?] WAL file archive leads to crash during startup
Previous Message Richard Guo 2024-08-28 07:31:27 Re: Significant Execution Time Difference Between PG13.14 and PG16.4 for Query on information_schema Tables.