+
+
+
+ pg_get_database_ddl
+
+ pg_get_database_ddl
+ ( databaseregdatabase
+ , prettyboolean
+ DEFAULT false
+ , ownerboolean
+ DEFAULT true
+ , tablespaceboolean
+ DEFAULT true )
+ setof text
+
+
+ Reconstructs the CREATE
+ DATABASE statement for the specified database,
+ followed by ALTER DATABASE
+ statements for connection limit, template status,
+ and configuration settings. Each statement is returned as a separate
+ row. When pretty is true, the output is
+ pretty-printed. When owner is false, the
+ OWNER clause is omitted. When
+ tablespace is false, the
+ TABLESPACE clause is omitted.
+
+
@@ -3888,14 +3916,15 @@ acl | {postgres=arwdDxtm/postgres,foo=r/postgres}
setof text
- Reconstructs the CREATE ROLE statement and any
- ALTER ROLE ... SET statements for the given role.
- Each statement is returned as a separate row.
+ Reconstructs the CREATE ROLE
+ statement and any
+ ALTER ROLE ... SET statements for the given
+ role. Each statement is returned as a separate row.
Password information is never included in the output.
When pretty is true, the output is
pretty-printed. When memberships is false,
- GRANT statements for role memberships are
- omitted.
+ GRANT statements
+ for role memberships are omitted.
@@ -3921,40 +3950,14 @@ acl | {postgres=arwdDxtm/postgres,foo=r/postgres}
setof text
- Reconstructs the CREATE TABLESPACE statement for
- the specified tablespace (by OID or name). If the tablespace has
- options set, an ALTER TABLESPACE ... SET statement
- is also returned. Each statement is returned as a separate row.
- When pretty is true, the output is
- pretty-printed. When owner is false, the
- OWNER clause is omitted.
-
-
-
-
-
- pg_get_database_ddl
-
- pg_get_database_ddl
- ( databaseregdatabase
- , prettyboolean
- DEFAULT false
- , ownerboolean
- DEFAULT true
- , tablespaceboolean
- DEFAULT true )
- setof text
-
-
- Reconstructs the CREATE DATABASE statement for the
- specified database, followed by ALTER DATABASE
- statements for connection limit, template status, and configuration
- settings. Each statement is returned as a separate row.
- When pretty is true, the output is
- pretty-printed. When owner is false, the
- OWNER clause is omitted. When
- tablespace is false, the
- TABLESPACE clause is omitted.
+ Reconstructs the CREATE
+ TABLESPACE statement for the specified tablespace (by
+ OID or name). If the tablespace has options set, an
+ ALTER TABLESPACE ... SET
+ statement is also returned. Each statement is
+ returned as a separate row. When pretty is
+ true, the output is pretty-printed. When owner
+ is false, the OWNER clause is omitted.