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 1wI1aj-007ie7-2F for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Apr 2026 09:52:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wI1ai-002p4L-1J for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Apr 2026 09:52:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wI1ah-002p48-20 for pgsql-hackers@lists.postgresql.org; Wed, 29 Apr 2026 09:52:24 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wI1ac-00000003mFR-48XJ for pgsql-hackers@lists.postgresql.org; Wed, 29 Apr 2026 09:52:21 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 457CF1D0012B; Wed, 29 Apr 2026 05:52:16 -0400 (EDT) Received: from phl-imap-17 ([10.202.2.105]) by phl-compute-04.internal (MEProxy); Wed, 29 Apr 2026 05:52:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; 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=fm1; t=1777456336; x=1777542736; bh=M+nnRL3im/ECbNJvr54gkeKQ1dCO+aTTlEbksp8Nof8=; b= AJFIOXuBqNBHlwHaYnq2iS3U0UopA4+uPyDoLnerHaFYHxJUA03ZGsnmNkVh6lxK sgq2Gy4xyPS1K+jL3p7fK928n5VKy1l7nox8y7CGMmTY0UjjaUxMUvuFftLgEvC0 1GTOJi+dc3zg0hyjCMUoCbPv20DoRhMiOp7RXjw0PkyAkNIMFUAyjJR5qzFi5nb0 KZi/UWjf0F22oq7D4Ul8YHhGtIVfse006pEsGMmhzM1hWyjTzW0ptHpcujWQmdYD GwbvZX6knbJMmmvpJOE9DimcmkxiDmw66YzIvG3mWYjxA/+ss0Wg2Wcv4imD/LsK 74w+Ged0NzAPG8WF2Wk6ow== 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=fm2; t=1777456336; x= 1777542736; bh=M+nnRL3im/ECbNJvr54gkeKQ1dCO+aTTlEbksp8Nof8=; b=E wRkRY21Zdgys7wBe+7j8iuDn3BWDSzkwqW/5VsP18HDUB+pOIaMeK4EvbFoQ4Wqr Gn/Oq4rzPKbRSEnMFZHKSZgASVEV32xxhXnfv0Gi6X6wiUNGK1/1NTbm7Z/10u1I YutLmBgqLZ9dOVOGsbljqoAp9JweFExm+iUbZD5s+FXO0bKMTTIOb+XPErHUQnfp CyDeuNtY7xDROFncXb6/2iDs+xQFAALO6TGbkT8siYsS4VnDw0jWayXjBBdTK/Fj NdLC92M+nWQisvtCcpK9CtZVNFmR2Y53/5EtuEknx5NwctemhdyQ7H9hR0wKxunt i3MYZKtynNrw5M6D3wtDg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdekgedufecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefoggffhffvvefkjghfufgtgfesthhqredtredtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeevgeegueeghfethfegtedvheekleelhedvhfdtueeujedvjeejveek teevkeeuvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgdpnhgspghrtghpthhtohepfedp mhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghshhhuthhoshhhrdgsrghprghtrd hoshhssehgmhgrihhlrdgtohhmpdhrtghpthhtoheplhhirdgvvhgrnhdrtghhrghosehg mhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtsh drphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 9063EC40071; Wed, 29 Apr 2026 05:52:15 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 Date: Wed, 29 Apr 2026 11:51:55 +0200 From: =?UTF-8?Q?=C3=81lvaro_Herrera?= To: "Chao Li" , "Ashutosh Bapat" Cc: "L. pgsql-hackers" Message-Id: <02fe13db-4fba-4e9d-9b4c-e6271a133502@app.fastmail.com> In-Reply-To: <59B04C7C-8DE7-48CE-9CD4-6E188D16A0C4@gmail.com> References: <1DA5D52A-4AFA-426E-83F7-42ED974D682B@gmail.com> <59B04C7C-8DE7-48CE-9CD4-6E188D16A0C4@gmail.com> Subject: Re: Property graph: fix error handling when dropping non-existent label property Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-04-29, Chao Li wrote: >> Looks good to me. However, I did change OidIsValid() and !OidIsValid() >> back to (oid) and (!oid) conditions to be consistent with the rest of >> the code. > > In the file, I also see: > ``` > if (pgrelid =3D=3D InvalidOid) > ``` > > Should we take this opportunity to change to use OidIsValid()=20 > everywhere in the file? As this feature is new to PG19, we can cleanup=20 > the inconsistency before releasing v19. Otherwise some people might=20 > also file a cleanup patch for this in the future. Yeah, I find "if (oid)" a rather terrible coding pattern. The negative o= ne is perhaps not so bad, but I'd keep both cases similar by using the m= acro in both, for consistency. --=20 =C3=81lvaro Herrera