diff --git a/doc/src/sgml/func/func-info.sgml b/doc/src/sgml/func/func-info.sgml
index 218578c318f..4fc74ca29a1 100644
--- a/doc/src/sgml/func/func-info.sgml
+++ b/doc/src/sgml/func/func-info.sgml
@@ -3874,20 +3874,21 @@ acl      | {postgres=arwdDxtm/postgres,foo=r/postgres}
         <indexterm>
          <primary>pg_get_database_ddl</primary>
         </indexterm>
-        <function>pg_get_database_ddl</function>
-        ( <parameter>database_id</parameter> <type>regdatabase</type>
-        <optional>, <literal>VARIADIC</literal> <parameter>ddl_options</parameter>
-        <type>text[]</type> </optional> )
+        <function>pg_get_database_ddl</function> ( <type>name</type> <optional>, <literal>VARIADIC</literal> <parameter>options</parameter> <type>text[]</type> </optional> )
+        <returnvalue>text</returnvalue>
+       </para>
+       <para role="func_signature">
+        <indexterm>
+         <primary>pg_get_database_ddl</primary>
+        </indexterm>
+        <function>pg_get_database_ddl</function> ( <type>oid</type> <optional>, <literal>VARIADIC</literal> <parameter>options</parameter> <type>text[]</type> </optional> )
         <returnvalue>text</returnvalue>
        </para>
        <para>
         Reconstructs the <command>CREATE DATABASE</command> statement from the
-        system catalogs for a specified database. The first argument is the OID or
-        name of the database. The optional variadic argument is an array of text
-        flags to control the output. Supported options include
-        <literal>pretty</literal>, <literal>owner=no/false/0</literal>,
-        <literal>tablespace=no/false/0</literal>, and <literal>defaults</literal>
-        Or <literal>defaults=yes</literal>.
+        system catalogs for a specified database by name or OID. The optional
+        variadic argument is an array of arguments to control the output
+        formatting and content. Supported arguments explained below.
         </para></entry>
       </row>
      </tbody>
@@ -3895,8 +3896,8 @@ acl      | {postgres=arwdDxtm/postgres,foo=r/postgres}
    </table>
 
   <para>
-    The <parameter>ddl_options</parameter> for <function>pg_get_database_ddl</function>
-    provide fine-grained control over the generated SQL:
+    The <parameter>options</parameter> for these object DDL functions provide
+    fine-grained control over the generated SQL:
     <itemizedlist>
     <listitem>
       <para>
diff --git a/src/backend/catalog/system_functions.sql b/src/backend/catalog/system_functions.sql
index 16c0d52479a..69a098561e7 100644
--- a/src/backend/catalog/system_functions.sql
+++ b/src/backend/catalog/system_functions.sql
@@ -658,7 +658,7 @@ STRICT VOLATILE PARALLEL UNSAFE
 AS 'pg_replication_origin_session_setup';
 
 CREATE OR REPLACE FUNCTION
-  pg_get_database_ddl(database_id regdatabase, VARIADIC ddl_options text[] DEFAULT '{}')
+  pg_get_database_ddl(database_id regdatabase, VARIADIC options text[] DEFAULT '{}')
 RETURNS text
 LANGUAGE internal
 AS 'pg_get_database_ddl';
