Re: Mark ItemPointer parameters as const in tuple/table lock functions

From: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Mark ItemPointer parameters as const in tuple/table lock functions
Date: 2025-08-29 06:23:50
Message-ID: AA8EDC09-4179-4749-88CB-3766C723CE9A@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Peter,

Thank you so much for your help.

> On Aug 29, 2025, at 13:42, Peter Eisentraut <peter(at)eisentraut(dot)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/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2025-08-29 06:48:50 Re: How can end users know the cause of LR slot sync delays?
Previous Message Zhijie Hou (Fujitsu) 2025-08-29 06:22:53 RE: Conflict detection for update_deleted in logical replication