Re: Using MyDatabaseId in SET_LOCKTAG_APPLY_TRANSACTION

Maxim Orlov <orlovmg@gmail.com>

From: Maxim Orlov <orlovmg@gmail.com>
To: "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-12-04T09:52:25Z
Lists: pgsql-hackers
On Wed, 3 Dec 2025 at 15:27, Hayato Kuroda (Fujitsu) <
kuroda.hayato@fujitsu.com> wrote:

> Dear Maxim,
>
> I recalled my post [1]. The database id is helpful when we output lock
> information by DescribeLockTag(). Since it would be called when the system
> might
> be under the deadlock, any locks should not be acquired even AccessShare.
> It can
> be done if catcache is missed.
>
> OK, now I get it. Thank you very much for the explanation.

-- 
Best regards,
Maxim Orlov.