pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to extract table DDL from PGSQL database?
2+ messages / 2 participants
[nested] [flat]

* How to extract table DDL from PGSQL database?
@ 2003-10-17 18:18 David Wagoner <dwagoner@arsenaldigital.com>
  2003-10-17 19:02 ` Re: How to extract table DDL from PGSQL database? Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: David Wagoner @ 2003-10-17 18:18 UTC (permalink / raw)
  To: pgsql-admin

How do I extract table or view DDL from a postgresql database?  I thought
the PGAdmin tool would do this, but I haven't found the functionality there
yet.  Looked at the system catalog tables, but didn't find everything I
needed (version 7.1 postgresql).  Anyone have a script or know of a tool?

Thanks.


Best regards,

David B. Wagoner
Database Administrator

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: How to extract table DDL from PGSQL database?
  2003-10-17 18:18 How to extract table DDL from PGSQL database? David Wagoner <dwagoner@arsenaldigital.com>
@ 2003-10-17 19:02 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2003-10-17 19:02 UTC (permalink / raw)
  To: David Wagoner <dwagoner@arsenaldigital.com>; +Cc: pgsql-admin

David Wagoner <dwagoner@arsenaldigital.com> writes:
> How do I extract table or view DDL from a postgresql database?

"pg_dump -s" is the usual way.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-10-17 19:02 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-10-17 18:18 How to extract table DDL from PGSQL database? David Wagoner <dwagoner@arsenaldigital.com>
2003-10-17 19:02 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox