Sample Header Ad - 728x90

Getting nice PostgreSQL pgAdmin-style DDL

4 votes
1 answer
535 views
In pgAdmin 3 (and pgAdmin 4 if you're prepared to wait longer) the DDL for the currently selected database object is shown in the main panel, along with corresponding triggers, constraints, etc, all nicely formatted. It looks quite different to the DDL exported from pgdump. Is there a way to get the nicer version, without manually copy-and-pasting from pgAdmin?
Asked by beldaz (1750 rep)
Jul 4, 2017, 07:30 PM
Last activity: Jul 5, 2017, 07:22 AM