ddlx
DDL eXtractor functions
pg_ddlx : DDL eXtractor functions
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 5080 | ddlx | pg_ddlx | 0.30 |
ADMIN | PostgreSQL | SQL |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-- | No | Yes | 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 |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | MIXED | 0.30 |
18 17 16 15 14 | pg_ddlx |
- |
| RPM | PIGSTY | 0.30 |
18 17 16 15 14 | ddlx_$v |
- |
| DEB | PIGSTY | 0.30 |
18 17 16 15 14 | postgresql-$v-ddlx |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PGDG 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 |
| el8.aarch64 | PGDG 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 |
| el9.x86_64 | PGDG 0.30 | PGDG 0.30 | PGDG 0.30 | PGDG 0.30 | PGDG 0.30 |
| el9.aarch64 | PGDG 0.30 | PGDG 0.30 | PGDG 0.30 | PGDG 0.30 | PGDG 0.30 |
| el10.x86_64 | PGDG 0.30 | PGDG 0.30 | PGDG 0.30 | PGDG 0.30 | PGDG 0.30 |
| el10.aarch64 | PGDG 0.30 | PGDG 0.30 | PGDG 0.30 | PGDG 0.30 | PGDG 0.30 |
| d12.x86_64 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 |
| d12.aarch64 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 |
| d13.x86_64 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 |
| d13.aarch64 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 |
| u22.x86_64 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 |
| u22.aarch64 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 |
| u24.x86_64 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 |
| u24.aarch64 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 |
| u26.x86_64 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 |
| u26.aarch64 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 | PIGSTY 0.30 |
Source
github.com/lacanoid/pgddl
pgddl-0.30.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.