Add OID descriptions to dumped parse/query/plan trees

From: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Add OID descriptions to dumped parse/query/plan trees
Date: 2025-08-22 09:07:51
Message-ID: e0922caf-b9d8-4c2a-a670-4a82226d59d6@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Hackers,

When reading dumped parse/query/plan trees, sometime we want to know
what exact type/operator/function an OID stands for. I just added a new
feature that will add some OID descriptions to the dump trees, like:

```

      :scan.scanrelid 1
      :indexid 16474 # index orders_pkey
      :indexqual (
         {OPEXPR
         :opno 521 # operator >(integer,integer)
         :opfuncid 147 # function int4gt(integer,integer)
         :opresulttype 16 # type boolean
         :opretset false
         :opcollid 0

```

The patch file is attached.

Best regards,

--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/

Attachment Content-Type Size
v1-0001-Add-OID-descriptions-to-dumped-parse-query-plan-t.patch text/plain 5.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kirill Reshke 2025-08-22 09:19:02 Re: Add OID descriptions to dumped parse/query/plan trees
Previous Message Kirill Reshke 2025-08-22 08:59:37 Re: CREATE SCHEMA ... CREATE DOMAIN support