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 1wVOhi-001vpF-2P for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jun 2026 07:10: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 1wVOhh-00AaSD-1y for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jun 2026 07:10:53 +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 1wVOhg-00AaS4-2u for pgsql-hackers@lists.postgresql.org; Fri, 05 Jun 2026 07:10:53 +0000 Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wVOhf-00000001CFc-0CfT for pgsql-hackers@lists.postgresql.org; Fri, 05 Jun 2026 07:10:52 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.phl.internal (Postfix) with ESMTP id 9EC8E1400184; Fri, 5 Jun 2026 03:10:49 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Fri, 05 Jun 2026 03:10:49 -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=fm3; t=1780643449; x=1780729849; bh=4om9Ska3MhIR55BhlcDhJOOxxhHoj+tP 9IMFMXaafU0=; b=oEwfekGFnboMQ9uJtzP+FgijoV/19ipH93yYR2pGvmfDSK6N etpbuKz87rcyQEHOASAKMX6Xh0urPAVyCc9kjV/9pP15ry3UJh68NR+9rnjKgS16 qBJAaUAxbqnInFTgTWfzdr+laIl6s+cHOEenPnIxH3zRxFNNMeQ8/XsmRw2D8cKO 80HDAGE2BPuf8LomcTaLqtiXbQ3pqoZaOxCx6v/UZSvglr2KFldTfR2IVz5rEcvO PIITDOB6b7bWLY944by2jxo4I3OgYCvt7ZuzXdEEuaRcQIJi74L2s5UKpGK/CkDL CtOV2VkU3reLVmJknRhmwqqSuVkwsoTZtkP9Qw== 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=fm1; t=1780643449; x= 1780729849; bh=4om9Ska3MhIR55BhlcDhJOOxxhHoj+tP9IMFMXaafU0=; b=T d0XM5Izc0xK36VpBbdGed+v+KymAjVgjPdYYQ4Dd14F1IXAYCbnblRRg9k54ZWBA CfMmObKearmnuzyUl9RjR+QjuI57yeH5e6+ivCtv74esUlx9VH4SUPDKG5X2DgCw QCvyrD7ITWdD74gtuSpfLEBrWVOJ8foIVdOvX4a9pFz4sJGj335mnCA7JMYACxyw bGn5+qvBLFpDv7oLV1ddRmXCDWJTWLJXxk2pfRLiIH8f+NOCmkf29LhAVLl/x7W6 zc0wF5aR0GY7wcVAv86qHbfoVZ7Kx7l/HPPa5grzTNjHqy3ZuWKfr3R7FZMG14Ap yTz85q6sHt4QlmLoKQX3Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFfqI8uMDwi9+JibupbhXjr9T8leose/a7QQEQeAgXYyYr2u8btfvH/OBPWUQ4tSD Cmp/Dv8yNbiY3tL44dZ2N+OR70OC/UAqZpCgVLtaJUGmx0DNZtSEOoWyu9po4B+iEjw4v4 UVVeZ3iR+b9kSkxVm1bC+JSz9ACY0N0Fl/aXbm1WpazBA6EeX4nfDu9zFU7ErDpQWHg067 ND18N+VfowR02xSCYR+Fb/f5w3SGYq4wbAAqEfDI2HuzQezTwV4CjEf/7n+U97V6Y9DOHj B73GKVrTKXKR05B+aU0Qjo+dZkO/KW1oZ0PWSCubKJamV4mRKqo9NTy0jKobmqjE7Qpmpa axvQPXHG/qNrWtITMPBbogHgUVlM0j+gJOtaUNMfElk1TQdZ4pIthgCNZzIAMqcGScg7uZ gCrBoAyLwg/JOE1q4SKfPVAlLSCqtQEakWLozPS+ozry7egEYDSuD4HsKh05VdIoRKVKAk WEHps9mMhmypvNwDMlRd/OjuALtVV1EUQ0vaAuKaegnM2U8WTBkFdfVGik/Sk/iCFUCwBS 6j2GL3eNV2BuSWtR08PgdLrneHcKQWc8iLHUkTRgnK96tn9lA3ronef0W4FfSNCv8E1GIB 3hvjf7WpVf19qxS/R8CXkCLdCU0xt7USeOKbGNulHxmMHxo0PojtPh1ALmpw X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 5 Jun 2026 03:10:48 -0400 (EDT) Message-ID: <29c33fb6-4200-4a08-be3d-a1a2ceef23b8@eisentraut.org> Date: Fri, 5 Jun 2026 09:10:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Fix DROP PROPERTY GRAPH "unsupported object class" error To: Michael Paquier , Alex Guo Cc: Bertrand Drouvot , Ashutosh Bapat , pgsql-hackers@lists.postgresql.org 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 07.05.26 03:47, Michael Paquier wrote: > On Wed, May 06, 2026 at 10:38:32AM +0800, Alex Guo wrote: >> On 5/5/26 2:00 PM, Bertrand Drouvot wrote: >>> On Thu, Apr 30, 2026 at 06:01:22PM +0530, Ashutosh Bapat wrote: >>>> I think we should just eliminate it >>>> from the result just like we are eliminating the rule. There is slight >>>> convenience in keeping the query as is - it need not change even >>>> though the columns returned by the function change and it's more >>>> readable. I also think that we don't need a type defined for a >>>> property graph - it doesn't contain any row as well as the shape of >>>> the result of GRAPH_TABLE depends upon the COLUMNS clause - so that's >>>> not fixed as well. I will start a separate thread for that >>>> discussion. >>> >>> Yeah, now that 891a57c7394 is in, PFA a new version of the patch. This is just >>> a mandatory rebase and the COLLATE "C" removals. > > In order to move the needle, I have applied the simplification of > getObjectDescription() as an independent piece. > > Label properties lead to part descriptions like that: > + property graph label property | | | k1 of e of e of > create_property_graph_tests.gt > + property graph label property | | | k2 of e of e of > create_property_graph_tests.gt > > This is confusing and hard to act on for the reader, with the same > object name defined twice (worse matter: twice in a row). For the > reader, is the first "e" something different than the second? Do both > refer to the same object? Do they refer to different sub-objects > instead but named the same because the implementation dictates so? > This could gain in clarity. > > This has been mentioned upthread. But, while reviewing the rest, I am > really puzzled by your choice of "property graph element label > property" over "property graph label property", which is inconsistent > with the catalog description. We usually try to be careful about the > wordings of the descriptions with the statis data in objectaddress.c, > and the extra "element" feels out of place to me. > > I'll let Peter comment about these points, but it really looks like > the intention of the catalog leads to a result closer to the attached > (leaving the label property description aside for a minute). > > Attaching a rebased v7 with the remaining pieces. I have committed the v7 patch with two additional fixes: 1) Removed the translation markers from the getObjectIdentityParts additions, these are not supposed to be translated; and 2) added the new cases to ObjectTypeMap.