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 1wI3kh-007kn8-1D for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Apr 2026 12:10:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wI3kg-003NPJ-28 for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Apr 2026 12:10:50 +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 1wI3kg-003NP9-1E for pgsql-hackers@lists.postgresql.org; Wed, 29 Apr 2026 12:10:50 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wI3ke-00000003nOK-1b6v for pgsql-hackers@lists.postgresql.org; Wed, 29 Apr 2026 12:10:50 +0000 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-43cf8d550bdso10522408f8f.0 for ; Wed, 29 Apr 2026 05:10:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1777464647; cv=none; d=google.com; s=arc-20240605; b=iDP1MHkmbSb9U5QAH+cZDDA9MuDur0jG8k2NMLf2R5v4mlNp2F/27T51zCdbg7mwX0 KPQD5KMgU+6E9Dlalqrm6NdDCRZ9/zFzO06JrciZfpSDtqKL9rBlLXUpr+SGXL6Jw9jf K5FQP58YdPFmNyDSmZWSOKwkPwUnqihCGpX6eLrWtZPrPx7QOxAk0OUPdFo7LvHf4mMc IDXoOsj849iTCEt+rH/+4ZkItt9G37cUURLkHhv/IRdV4TlUb71CdDUUZdJBP3klqJOr Ip1MrL0rhZMTQ1cH2XSYCLNfMkh/11mjsFn2JNHkaho9Y1y0QXAIUEMJCTzWj4DgA52/ xFOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=b3Ky321oo0vP8d6tIDtCNv7/HKMRgeWwzbluG7UJn8g=; fh=NfNAdnkec+omjx+EI7Bo9matmc0EP/YjPH6/baYAu5s=; b=EC1WC4ilfkOCFYDoc0DABlhq/1T85CU2GXYD+8X9OOiFUHIvBzGeL1nBD2vp0FwUL4 gAtuOABSqT9lbnTOWFmpxEllCGuTzCgjneZHdQnsOqwo+D0vqSLVU38Hx2hLZYD3bXeU uB9BCEqbn4h7g73RaFv6YSkovRr/rDbPyE/sDhG1LvitImiW6otlz6Xda0ToX62u65cb ErffGdKJcsyZCat+PKvU4Hb/Y4L+DZLASvvYtK3n4gv75sxOVZFRCueHUxDQFrEDk74B GXnvvkra8IW7HwDSRG0Mg8b0Q0OmjVTIE7sVdznIHdtKsxetGFEmp28S64d0CAT+83EQ 4cvg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777464647; x=1778069447; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=b3Ky321oo0vP8d6tIDtCNv7/HKMRgeWwzbluG7UJn8g=; b=J0NVKlwe9WQ8HiXdtSPEmLeUT0HCGe1TFkYc0Ii3JAaUEyEOMn96HHafCcnmh99+ir GJYsNEAAvFJzEoVEWRvaEGmW5U6gPafLdQ0eq97h5yKipmsE4DP9rNuJhoLmVqnT/+w0 xrTgeUyR69/wMevtoFn7LmVbpJglxsuoZUsh8TE1ucCSurdww97N8NydQpdZ9U4wtIqr Z/Sw/wNJ4l8ftjpYb/4jmVf90juYM+uIjLKm7jysHnD8NEDkBn3T1cgADoRQp/f3+KBv 8+KvIExJ/v/XBRMLatGJzZSMyz6K3Y7eiVMl95jJkUxxZwxqozILdy0krMCya9JskVRz tAkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777464647; x=1778069447; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=b3Ky321oo0vP8d6tIDtCNv7/HKMRgeWwzbluG7UJn8g=; b=GhfVOZZG9PsOKonuoGamv4oYKmY7f1oweAVmQTgwIemmUOychPR7cssx13gpeJsZ11 HCkwbuVAUZL7h0iJAUDFk4lPpB9qLSe65ZjdgoIXl9owfV2W+E9vQiTL2zURzU5oTuW2 pBScIeP1IT0na0D5GhIm5XiAuCVcC5iYmslt+Cf5OvTV8lkZM64tYyAQ7H9VQYR3IA0W CqvRR4I/qrksbEJh7/uURhhuSgMqdbopsyGy2RZRyQtruXgRBnXX7J2ovmOWd0Ef9b0E 1uxthRPvciaLH9B6Mjm4nMBCxsDK9OhKke+pZqHvOtC8m6f5qboan0gXtRXNSHQM9tmv bTPQ== X-Forwarded-Encrypted: i=1; AFNElJ87SXddlRkzwuEc3NGTlj1PiwDcA4ISVpoL48wmtd9nbsBGV4MEQWAwRg5QAKQVsKnUk1YJzS1lO4m9Yd4R@lists.postgresql.org X-Gm-Message-State: AOJu0YxCjJWnIpcDLWeCD1G0lxXecLXVzf7gzwLkcoj5RYTRFaHwL9Hv 6XlEuRfVbgH4xoXoOUdeGzRVn133DHpghAPUNkNh5O8a9tv9NnjAeodzCDM17E/USbWRoIsbPra 8+F8kafMZHSj3rAz2HL8QFFlOci5WUdk= X-Gm-Gg: AeBDiev2FYJFKOpM5dlrW7qNBHT/cA8hZBhkftdA5loRsmUWE2/pkghrPVViOjxZ8yT nbz0iWv5rLHBGNDgShdmOXO1jQ6Fs8XvePRVtR7aa6yHw5VbxXJ0ACo+kB2BdAj+0uC89TzrDt0 P5j1SXEM/7tiaTCxwNC9vFtWd5yTg+Eo0sVgXBq19mC6T6BAITigVscRmMcXjTLsAwCwnVfrKHq t1PQQlT4+Zwk3gw31z3v9okYaGD9y/ciszvAp6iiVckjDjPAJlmNS8Xdus8whLRdQQPJkO7Grns 8dykTnziFxYQVSo1Hd8fL6ROfEUJsQGwgNgcoeQf7XtkdK06LfwB7YUbcYi3pQqCw72P9xyc X-Received: by 2002:a05:6000:604:b0:43d:70de:1c70 with SMTP id ffacd0b85a97d-44649ba190bmr13085877f8f.32.1777464646753; Wed, 29 Apr 2026 05:10:46 -0700 (PDT) MIME-Version: 1.0 References: <1DA5D52A-4AFA-426E-83F7-42ED974D682B@gmail.com> <59B04C7C-8DE7-48CE-9CD4-6E188D16A0C4@gmail.com> <02fe13db-4fba-4e9d-9b4c-e6271a133502@app.fastmail.com> In-Reply-To: <02fe13db-4fba-4e9d-9b4c-e6271a133502@app.fastmail.com> From: Ashutosh Bapat Date: Wed, 29 Apr 2026 17:40:32 +0530 X-Gm-Features: AVHnY4Kpmh7LoRH1RrRA7qBDTVpJshetHXYakS5Mto6VhA2_lePFsMRW4JAFYUI Message-ID: Subject: Re: Property graph: fix error handling when dropping non-existent label property To: =?UTF-8?Q?=C3=81lvaro_Herrera?= Cc: Chao Li , "L. pgsql-hackers" 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 Wed, Apr 29, 2026 at 3:22=E2=80=AFPM =C3=81lvaro Herrera wrote: > > 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() > > everywhere in the file? As this feature is new to PG19, we can cleanup > > the inconsistency before releasing v19. Otherwise some people might > > also file a cleanup patch for this in the future. > > Yeah, I find "if (oid)" a rather terrible coding pattern. The negative on= e is perhaps not so bad, but I'd keep both cases similar by using the macro= in both, for consistency. > I am in favour of doing this change, but let's do it in a separate patch. --=20 Best Wishes, Ashutosh Bapat