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 1wK632-000aKg-2K for pgsql-hackers@arkaria.postgresql.org; Tue, 05 May 2026 03:02:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wK630-009nVC-29 for pgsql-hackers@arkaria.postgresql.org; Tue, 05 May 2026 03:02:10 +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 1wK630-009nV4-0p for pgsql-hackers@lists.postgresql.org; Tue, 05 May 2026 03:02:10 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wK62x-00000000FCE-3nWk for pgsql-hackers@lists.postgresql.org; Tue, 05 May 2026 03:02:09 +0000 Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-c80203b9d7bso687237a12.0 for ; Mon, 04 May 2026 20:02:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777950127; x=1778554927; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YitiiDEShpxRl4poQZTHmA/lVQ4y9Ey17y17wURhs+s=; b=ViON/rB7+gBhwWvFxtirOmq14c3ezb8vKhzm6fbO7zjsGArycCArSetWXljPqNm9vL wP3l/4I5WAYedDe1VOk2Rj7i8bb59exqdk4Yiqu4R9pWm6jEFj2St5QGwsGqj4kBQiV1 UcBo7ldYimLmvAcWprh/dJ4wgqwc2EXnoTq+/k7i+DbjH0qKvtqH1MQJtl6yxmAYNzpP 0QvuIcvpyr3JyjuhiuEoebBtK/TL4EOClOHWEAl7kmZxhbVM4Rm1vYVfZ7iqWRlpEZUj QvdSydUGZ0znI0KJwAPtJYMYNkdFn1z2otygOfzeBzdI9Af9WsofLWt3whtrZEQ5Vcun Ktog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777950127; x=1778554927; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=YitiiDEShpxRl4poQZTHmA/lVQ4y9Ey17y17wURhs+s=; b=BRxfMDGwVgXdhJuto3qNu5cWZAMMji19ijOQ7NeHQmhLwLyFZ1ql6HOm/845LVAOko J9pOZdmiFbRRx+GRYaZgaPKn9NDzMT+KkT3XHevWyuwe3NMfUbqJrLIqhqD2MvSmjM70 qspbZPUy23RwI9H5qsOolR7KvIao2Z/v8DhDKrwJhAY0HQA9M//AmoKiOOWW0tujhI3r opGFO5lNE8oS1O+TDsDJDoEtPBfIwkw/rBLkm6wnSJpZiqqPVzQrMmfS/fYJmE9kXpel an5DAabydHJy6YCIXxjlic4GBSw+J3bRw44JZlQz7Dr87wAC17b7Th33tNS9Zi1wqet5 vo/Q== X-Forwarded-Encrypted: i=1; AFNElJ/22Gr6qF0PaJgm3jtBnnKTTubP84l7O/raZzrKRJOtBVBcW7x+l46t+ke598v+KelQ1JeTuHgsfXDbHbg9@lists.postgresql.org X-Gm-Message-State: AOJu0Yypl6tg8xpYforV3PwKO5UQ4KiqRbh0Fiavx4U6BPt/gqVyX5Qd b7btRaRUP8q0Fl8j2thXbzffzIUDm643y6Vyvo9+F05Tlp1SxuHLmgaM X-Gm-Gg: AeBDieuEWW6JgTNYLAMA3TwmMukHsY30PnFu9Vn1l+IZjZo9t6Qnxo67qyuxsn5BRNq 1NKM0k8H2XZa2EXmN9on+wbYs64FmW5cKtcxUTlG4ksvF49RARrpOPOb9njBEPmw9STR7NGvMsK R/zwY8wpXh1zabUMK/p6TXgtEgVDklmAHF4NcXV+LICwmlwsDFRpxLE+//q8pAJQFcwoIKJAHel zSHaX5FwlTqx89obB6Nk34+YyazWYG9lo57b4yej/biARfN+HPkbxJX7QecW6JCSZEeWvPNDUHO ei+wnNgcEYbrS0D3vbNLXxgp5e8Dewk3pH1DBXLc11BoqXp8DgBKoqtsGDfgdUQn61EM4toO08j HHEvJeN51mzrBfB+2fpqETQ6aF6nE2juLR0PUp+C4tsp4fO7kh0wmcPq7PSow8jH8uU9gRcCt24 uDnhffGOYvVzx29+U2XJfcLEm/ugGOWltZB9savMYsWQ== X-Received: by 2002:a05:6a21:3293:b0:398:7357:bb91 with SMTP id adf61e73a8af0-3aa3b71c7a7mr1458050637.33.1777950127470; Mon, 04 May 2026 20:02:07 -0700 (PDT) Received: from smtpclient.apple ([45.32.121.103]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c7ffbcac2cfsm10977652a12.32.2026.05.04.20.02.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 May 2026 20:02:06 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: [Bug][patch]: After dropping the last label from a property graph element, invoking pg_get_propgraphdef() triggers an assertion failure From: Chao Li In-Reply-To: Date: Tue, 5 May 2026 11:01:27 +0800 Cc: Ashutosh Bapat , SATYANARAYANA NARLAPURAM , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <42586CE9-15C1-42C2-A75D-50FD4B949141@gmail.com> References: <0E47B575-A8AE-4366-AD73-7A25BF0D7815@gmail.com> To: Peter Eisentraut X-Mailer: Apple Mail (2.3864.400.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On May 4, 2026, at 22:47, Peter Eisentraut = wrote: >=20 > On 29.04.26 14:58, Chao Li wrote: >> As Alvaro commented at [1], I added 0003 to use OidIsValid macro. = 0001 and 0002 are unchanged. >> [1]https://www.postgresql.org/message-id/02fe13db-4fba-4e9d-9b4c- = e6271a133502@app.fastmail.com >=20 > I'm personally not on board with that coding style rule. At least I = don't consider this patch necessary right now as we're working toward = stabilizing the current code. >=20 In the current code in propgraphcmds.c, the style is already = inconsistent. I see three forms: At line 434: ``` if (OidIsValid(opc)) ``` At line 754: ``` if (!labeloid) ``` At lne 1302: ``` if (pgrelid =3D=3D InvalidOid) ``` Anyway, I don=E2=80=99t have a strong opinion here, so please feel free = to discard 0003. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/