[PATCH v1] Document pg_get_partition_constraintdef.

Started by Todd Liebenschutz-Jones2 days ago2 messages
#1Todd Liebenschutz-Jones
todd.liebenschutz-jones@starlingbank.com
1 attachment(s)

Please find attached a patch to document
pg_get_partition_constraintdef in func.sgml.

Todd

Attachments:

v1-0001-Document-pg_get_partition_constraintdef.patchapplication/octet-stream; name=v1-0001-Document-pg_get_partition_constraintdef.patchDownload
From 7059ec83d400a0f91b7abffe9dbbbcfb10f60c40 Mon Sep 17 00:00:00 2001
From: Todd Liebenschutz-Jones <todd.liebenschutz-jones@starlingbank.com>
Date: Wed, 21 Jan 2026 14:27:04 +0000
Subject: [PATCH v1] Document pg_get_partition_constraintdef.

---
 doc/src/sgml/func/func-info.sgml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/doc/src/sgml/func/func-info.sgml b/doc/src/sgml/func/func-info.sgml
index 175f18315cd..b7ef1eee6bc 100644
--- a/doc/src/sgml/func/func-info.sgml
+++ b/doc/src/sgml/func/func-info.sgml
@@ -1645,6 +1645,21 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
        </para></entry>
       </row>
 
+      <row>
+       <entry role="func_table_entry"><para role="func_signature">
+        <indexterm>
+         <primary>pg_get_partition_constraintdef</primary>
+        </indexterm>
+        <function>pg_get_partition_constraintdef</function> ( <parameter>table</parameter> <type>oid</type> )
+        <returnvalue>text</returnvalue>
+       </para>
+       <para>
+        Reconstructs the partition constraint of a partition.
+        (This is a decompiled reconstruction, not the original text
+        of the command.)
+       </para></entry>
+      </row>
+
       <row>
        <entry role="func_table_entry"><para role="func_signature">
         <indexterm>
-- 
2.52.0

#2Michael Paquier
michael@paquier.xyz
In reply to: Todd Liebenschutz-Jones (#1)
Re: [PATCH v1] Document pg_get_partition_constraintdef.

On Wed, Jan 21, 2026 at 05:25:39PM +0000, Todd Liebenschutz-Jones wrote:

Please find attached a patch to document
pg_get_partition_constraintdef in func.sgml.

Indeed, good catch. I don't see a reason not to add that knowing that
all the other pg_get_*def() functions are listed in this section of
the docs. Thanks for the report, will fix.
--
Michael