Re: Fix DROP PROPERTY GRAPH "unsupported object class" error

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Peter Eisentraut <peter@eisentraut.org>, Alex Guo <guo.alex.hengchen@gmail.com>, Bertrand Drouvot <bertranddrouvot.pg@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2026-06-10T05:19:27Z
Lists: pgsql-hackers
On Wed, Jun 10, 2026 at 09:28:56AM +0530, Ashutosh Bapat wrote:
> Here's a patch fixing it.

Based on the definitions of pglpgid/pgepgid/pgppgid (property graph
relations), pgelelid (property graph element) and plpellabelid
(property graph element label), that looks better.  I am still puzzled
regarding the choice of "label" in the patch for plpellabelid while it
is an "element label" based on the way it is stored in its catalog,
with the catalog matching the object being named "property graph
element label".

There may be a point in suffixing all these objects with a set of
"property graph" strings, but perhaps you are right in limiting the
length of the output without these.  Talking about "element" and
"element label" (not "label"!) would be good enough here.
--
Michael

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Readable identity strings for property graph objects

  2. Handle element label and label property objects in object address functions

  3. Simplify code in objectaddress.c for some property graph objects