Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wJuZ2-000PNb-1G for pgsql-hackers@arkaria.postgresql.org; Mon, 04 May 2026 14:46:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wJuZ1-007kRG-0o for pgsql-hackers@arkaria.postgresql.org; Mon, 04 May 2026 14:46:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wJuZ0-007kR8-39 for pgsql-hackers@lists.postgresql.org; Mon, 04 May 2026 14:46:26 +0000 Received: from fhigh-b7-smtp.messagingengine.com ([202.12.124.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wJuYy-000000009sU-2jLw for pgsql-hackers@lists.postgresql.org; Mon, 04 May 2026 14:46:26 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id 65FC37A0074; Mon, 4 May 2026 10:46:24 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Mon, 04 May 2026 10:46:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm2; t=1777905984; x=1777992384; bh=CwYUupplsi7zWxPtMmHEyeqIQ9zlmFMR R8R9iaFHtTM=; b=LA6G9dVRGLFSy+0X8Runehl5uiPFOoNS+837cLfDRxfxq+Uv 1KTrs67LK8KatYZrQ9mgoq7nfm7oKmvBm+XGCJev8D5AdVkBMXDq1J3aC0T0sE0u Iz+aadB5SYlKBUJmBZf+R+uNiAK/4tEyk3kToyMD8tR5zRRvyQ++weEfaLYlIfeq q+5cvfJyJArCCedho1BThvGNmzATcLP0zzgkAFdx5Nk0waNYLogNXknmfqQ7nzd/ l738Eof0xOZAPI3jlbmOe0Ln+diQWucmMOEWuKO8XhSrHU0qa219PJ4B4XSRUeoF lzawzD1sBKmx0gclKUamADsa4CY+2UwWDu3sqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1777905984; x= 1777992384; bh=CwYUupplsi7zWxPtMmHEyeqIQ9zlmFMRR8R9iaFHtTM=; b=l AuKhuWAo4zmQHxhhCg7U8qX7SnKBn1deJu6XhFiVUqUyvhr2iFrDMU59ZYRCKT9f VMhU5QmhvR5o4cOSiixNWnV+NfIH6H+uPjIxqHkBPmATqpEHLQIFvl3x3Z76sDir Ai9ADRu5nMaCXQY4e1T4fu4IZJpCT/YbYUiatuLWxfeyJRsspGrAQdh7Bfkv8eGh ufGIZYFZ1WAmpjVxvSLp481xjrhe2wHr3ecUQyD6AlaN30A/qcRScXlViH64bacg kWkRwzznKuoCrJoORqzTBJ1sdBQvcmWX9xD0XrsSehCuipnu91bYGPSkgqepcCrC 1wMFU2vOQKHu12F6XtbQA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdelleduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomheprfgvthgvrhcu gfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqeenuc ggtffrrghtthgvrhhnpefgjedthfekfedtuefgieelheetleejgefhueeltdfhueetvdff udekfeejhfegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdpnhgspghrtghpthhtohep fedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghshhhuthhoshhhrdgsrghprg htrdhoshhssehgmhgrihhlrdgtohhmpdhrtghpthhtohepshgrthihrghnrghrlhgrphhu rhgrmhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhsse hlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 4 May 2026 10:46:23 -0400 (EDT) Message-ID: <3762a2e0-d3be-40e7-83d2-52dc3e1a21b2@eisentraut.org> Date: Mon, 4 May 2026 16:46:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [Bug][patch]: After dropping the last label from a property graph element, invoking pg_get_propgraphdef() triggers an assertion failure To: Ashutosh Bapat , SATYANARAYANA NARLAPURAM Cc: PostgreSQL Hackers References: Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 28.04.26 17:02, Ashutosh Bapat wrote: > We are looking up element label catalogs twice in this patch - first > to find the label to be dropped and then to find the number of labels > associated with the given element. I combined these two into a single > while loop. That looks okay, but I think the names of the local variables are now a bit off. I would expect elrel and elscan to refer to pg_propgraph_element, not pg_propgraph_element_label. Maybe use ellabelrel etc. Also, I think this code needs to think a bit about locking to handle the situation where more than one DROP LABEL operation happens concurrently.