Re: Mark ItemPointer parameters as const in tuple/table lock functions - Mailing list pgsql-hackers

From Chao Li
Subject Re: Mark ItemPointer parameters as const in tuple/table lock functions
Date
Msg-id AA8EDC09-4179-4749-88CB-3766C723CE9A@gmail.com
Whole thread Raw
In response to Re: Mark ItemPointer parameters as const in tuple/table lock functions  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers
Hi Peter,

Thank you so much for your help.

On Aug 29, 2025, at 13:42, Peter Eisentraut <peter@eisentraut.org> wrote:

This patch still causes a compiler warning:

../src/backend/storage/lmgr/lmgr.c: In function 'XactLockTableWait':
../src/backend/storage/lmgr/lmgr.c:681:27: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]

I have fixed that and committed your patch.


--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/




pgsql-hackers by date:

Previous
From: "Zhijie Hou (Fujitsu)"
Date:
Subject: RE: Conflict detection for update_deleted in logical replication
Next
From: Amit Kapila
Date:
Subject: Re: How can end users know the cause of LR slot sync delays?