ddlx
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
pg_ddlx | 0.30 | ADMIN | PostgreSQL | SQL |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 5080 | ddlx | No | Yes | No | Yes | No | No | - |
| Related | pg_readme pgdd meta pg_catcheck pg_get_functiondef pg_dbms_metadata pg_render schedoc pg_query_rewrite pgpdf |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | MIXED | 0.30 | 1817161514 | pg_ddlx | - |
| RPM | PIGSTY | 0.30 | 1817161514 | ddlx_$v | - |
| DEB | PIGSTY | 0.30 | 1817161514 | postgresql-$v-ddlx | - |
Build
You can build the DEB packages for pg_ddlx using pig build:
Install
You can install pg_ddlx directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Create Extension:
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.
For Objects Without reg* Types
Additional Functions
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)