ddlx
DDL eXtractor functions
pg_ddlx : DDL eXtractor functions
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 5080 | ddlx | pg_ddlx | 0.32 |
ADMIN | PostgreSQL | SQL |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| ----d-- | No | No | No | Yes | no | no |
| Relationships | |
|---|---|
| See Also | pg_readme pgdd meta pg_catcheck pg_get_functiondef pg_dbms_metadata pg_render schedoc pg_query_rewrite pgpdf |
Upstream 0.31 tag is marked prerelease, as were the previously packaged 0.30 and 0.29 tags.
Packages
| Linux / PG | PG19 | PG18 | PG17 | PG16 | PG15 |
|---|---|---|---|---|---|
| el8.x86_64 | N/A | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
| el8.aarch64 | N/A | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
| el9.x86_64 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
| el9.aarch64 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
| el10.x86_64 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
| el10.aarch64 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
| d12.x86_64 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
| d12.aarch64 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
| d13.x86_64 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
| d13.aarch64 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
| u22.x86_64 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
| u22.aarch64 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
| u24.x86_64 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
| u24.aarch64 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
| u26.x86_64 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
| u26.aarch64 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 | PIGSTY 0.32 |
Source
github.com/lacanoid/pgddl
pgddl-0.32.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
ddlx is a SQL-only extension that generates DDL scripts from PostgreSQL system catalogs. It provides three main functions that accept an OID and work with all reg* object identifier types.
Core Functions
Options
Options are passed as a text array (e.g., '{ine,nodcl}'):
Available options: drop, nodrop, owner, noowner, nogrants, nodcl, noalter, ine (IF NOT EXISTS), ie (IF EXISTS), ext, lite, nowrap, nopartitions, comments, nocomments, nostorage, noconstraints, noindexes, nosettings, notriggers, grantor, data.