pg_get_*_ddl functions
SQL functions returning the DDL to recreate database objects (retail DDL).
Versions
- PostgreSQL 20 · worked-on · new · moderate
- [PATCH] Add pg_get_trigger_ddl() to retrieve the CREATE TRIGGER statement
- [PATCH] Add pg_get_policy_ddl() function to reconstruct CREATE POLICY statement
- [PATCH] pg_get_domain_ddl: DDL reconstruction function for CREATE DOMAIN statement
- Add pg_get_publication_ddl function
- pg_get__*_ddl consolidation
- [PATCH] Add pg_get_table_ddl() to reconstruct CREATE TABLE statements
- [PATCH] Add pg_get_event_trigger_ddl() function
- PostgreSQL 19 · reverted · new · moderate · 9 commits · +2.4k / -936 lines
- PostgreSQL 17 · worked-on · new · moderate
- PostgreSQL 16 · worked-on · new · moderate
Threads
- [PATCH] Add pg_get_table_ddl() to reconstruct CREATE TABLE statements
- pg_get_*_ddl() needs a redesign
- [PATCH] pg_get_domain_ddl: DDL reconstruction function for CREATE DOMAIN statement
- [PATCH] Add pg_get_trigger_ddl() to retrieve the CREATE TRIGGER statement
- [PATCH] Add pg_get_event_trigger_ddl() function
- [PATCH] Add pg_get_policy_ddl() function to reconstruct CREATE POLICY statement
- DOCS - "Get Object DDL Functions" table improvements
- pg_get__*_ddl consolidation
- Add pg_get_publication_ddl function
- Fix variadic argument types for pg_get_xxx_ddl() functions
- [PATCH] Add pg_get_subscription_ddl() function
- Fix wrong error message from pg_get_tablespace_ddl()
- Fix a server crash problem from pg_get_database_ddl
- Add null check on get_tablespace_name() return in pg_get_database_ddl_internal
- [PATCH] Doc: Fix missing func_signature role in pg_get_tablespace_ddl entry
- Reject invalid databases in pg_get_database_ddl()
- [PATCH] Fix NULL dereference in pg_get_database_ddl()
- [PATCH] Add pg_get_database_ddl() function to reconstruct CREATE DATABASE statement
- [PATCH] Add pg_get_role_ddl() functions for role recreation
- [PATCH] Add pg_get_tablespace_ddl() function to reconstruct CREATE TABLESPACE statement
- [PATCH] pg_get_domain_ddl: DDL reconstruction function for CREATE DOMAIN statement
- Re: [PATCH] Add pg_get_tablespace_ddl() function to reconstruct CREATE TABLESPACE statement
- [PATCH] Add pretty formatting to pg_get_triggerdef
- [PATCH] Add pg_get_type_ddl() to retrieve the CREATE TYPE statement
- Retail DDL
- Adding SHOW CREATE TABLE
- get a relations DDL server-side
- \describe*
- SHOW CREATE