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 1wK5s7-000a7H-1U for pgsql-hackers@arkaria.postgresql.org; Tue, 05 May 2026 02:50:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wK5s5-009jDx-34 for pgsql-hackers@arkaria.postgresql.org; Tue, 05 May 2026 02:50:53 +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 1wK5s5-009jDp-1q for pgsql-hackers@lists.postgresql.org; Tue, 05 May 2026 02:50:53 +0000 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wK5s3-00000000Ym5-1FE4 for pgsql-hackers@postgresql.org; Tue, 05 May 2026 02:50:53 +0000 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-8353dfdad62so1441542b3a.1 for ; Mon, 04 May 2026 19:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777949449; x=1778554249; darn=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=PiN85eGZvDg9iIToWtQ8EdjH7eKsKbluJI2ncVYuFtQ=; b=E8wKaVqFaKnmWnKrTY7lBKT55WB9mjvZu8HYcHaSErGHblu+1kNw1SOqzo3AFLTXW2 /kykYdMPA+8+Y7AfiPU1PtigtfVT9kCrNnPeBEXCOGhp4TEV/964RKrkANhXKAgnCD8N 3FhziaWy/hZ/94wVWgytRFYxDpLyZAZV1pH+OysrHQMcWKvfJHNI0W1egu9awdy1fSk+ 8cAt25ZMNDWw3YbARgp1TvfQaj99v0FxEreQv7iJIVLt7SrI4eDdGYsUhyxh27vmC6p9 nMTqwB+aOjZXQmlbOqv4aAIPUi6o8uALjh7nrbj+yG0OYDVm2cUXwx3h7+vg3zL2nH8t UdjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777949449; x=1778554249; 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=PiN85eGZvDg9iIToWtQ8EdjH7eKsKbluJI2ncVYuFtQ=; b=Edf9JXURI7zuGb9/FUd2gmVO1CTxCI7ltpBPru6idaDmQzlcyHIQiF/AiJrA3afffN 2GFMnJAmAGOb0icqMQAYArsjdhzivSU+gPfWU2lpJ5zEy86qFOIFCzcQJkIbdOtpsR8L o1UOb+MWDH6ksaE3K596qlKN6v4nbdcFVETDrqxQymJA++GrJeLq5N2sXuHBsniJcPsX 0AziOxOZ7XHDv3sxvrrp794vlsHVSYqwTUqIQJO1UtGzA528v2WDcRCr5Jtuw+MWOhA9 mnDzzZ/XcgNhzCtWEX3DV23DVWRm9M684gaB0E2MS+gVvOUT0Nv+XpuYFuxEXTzUVqsZ 1gcw== X-Gm-Message-State: AOJu0Ywd3GOJmwQFh5TgRNFGwvZIWAerl6VDzq4BkSBkTctbjOH1dVPt 8DTNBGZ7uIVnhtLcaWflDA0Od2BFLdAbsOQByFru+aIEq48qsARiEdxw X-Gm-Gg: AeBDiesZpedx0MkMtemo72nfq7jO62iAIWShu6e7CNbLNEwIU1khlqWase++cQwcr/p lxqcRdWHZl1yEGbgZJ0ADUo21e7kxSJZLJgYcHfSyD0VrmKia/m0a+cagHtE/KtktYoK6/znLq7 t8mqCHJRv4ufdL9TiCcIhHMfGX4ePUXjcq7GqI7sGwX8AkeCgWglQAnMDQmcgp5G64oU+PEfc8K 2h6gXY2hoaSbWCygo9ba5S6E54CDQtizlfZDh/pp6st3X5sxYC/DCoRFZGPf4JCSVyzDHthiAOp ginu0lpgkmPnjEoucF3S1rqgK8T26Ya6pCBIq04rtFWEwNnFTUGz+S3mmnYguty5nrxk44KgHRH nCcAASiAmWQcm65ocr/QXclqWBTTVtPopZ7dd20kwT/UoCn+aD+sVhJFLg5ZGcvpoEeBGBE1sct FB2/hR+62RhcAMraRC4XXhBQ0zhYEiD4a5kQllq+L7qg== X-Received: by 2002:a05:6a00:3d4c:b0:82f:280a:d888 with SMTP id d2e1a72fcca58-8352d15cac3mr14079355b3a.12.1777949449114; Mon, 04 May 2026 19:50:49 -0700 (PDT) Received: from smtpclient.apple ([45.32.121.103]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-83965d35b3bsm338274b3a.24.2026.05.04.19.50.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 May 2026 19:50:48 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: [PATCH] Clean up property graph error messages From: Chao Li In-Reply-To: Date: Tue, 5 May 2026 10:50:09 +0800 Cc: PostgreSQL Hackers , Peter Eisentraut , Ashutosh Bapat Content-Transfer-Encoding: quoted-printable Message-Id: <0ABA607E-665C-4E25-93EB-A21DF9616E84@gmail.com> References: To: Ayush Tiwari 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 5, 2026, at 03:57, Ayush Tiwari = wrote: >=20 > Hi, >=20 > While looking at the SQL/PGQ property graph error paths, I noticed a > few small cleanups in propgraphcmds.c. >=20 > The attached patch fixes a user-visible error message from = "mismatching > properties names" to "mismatching property names=E2=80=9D, I think changing =E2=80=9Cproperties names=E2=80=9D to =E2=80=9Cproperty = names=E2=80=9D is correct. I wonder if we can also change =E2=80=9Cmismatching=E2=80=9D to = =E2=80=9Cmismatched=E2=80=9D, so the error message is: ``` "mismatched property names in definition of label \"%s\"" ``` > and moves a > ReleaseSysCache() call before an ERROR ereport in > check_element_properties(). =20 >=20 > The existing code should be cleaned up by > the resource owner on the ERROR path, but the explicit = ReleaseSysCache() > placed after ereport(ERROR) was unreachable. >=20 Agreed. > The regression expected output is updated for the changed error text. >=20 > [On a separate note, it might be better to change all "vertexes" to = "vertices", > haven't included that in the patch though since the other one is not = exactly > wrong?] >=20 > Regards, > Ayus > So, v1 LGTM. Only thing is that I think we can also make = =E2=80=9Cmismatching=E2=80=9D to =E2=80=9Cmismatched=E2=80=9D in the = errmsg. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/