Re: Database schema dumper

From: "Joshua J(dot) Kugler" <joshua(at)eeinternet(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Database schema dumper
Date: 2009-07-02 15:11:42
Message-ID: 200907020711.42967.joshua@eeinternet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Monday 29 June 2009, felix(at)crowfix(dot)com said something like:
> I'd like to dump a database schema to a file, probably XML but
> anything reasonable is good enough. By "schema", I don't mean the
> narrow postgres keyword, but rather the table names, columns,
> foreignkeys, triggers, constraints, etc.
>
> I'd really like something that could work for other databases too,
> including O-----, M----, etc. But that might be asking too much.
>
> A quick google for variations on "dump database schema" didn't find
> much.
>
> Whether it be a CPAN module, Java class, etc, or a standalone
> program, none of that matters much.

You mentioned CPAN, so I assume you're comfortable with Perl. It's Pg
specific, but it's a GREAT utility:

http://www.rbt.ca/autodoc/

Does output in HTML, Dot, Dia,, and XML.

j

--
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE

In response to

Browse pgsql-general by date

  From Date Subject
Next Message McWilliams, Steven 2009-07-02 16:22:09 compiling postgres for 64 bit windows using mingw64
Previous Message Richard Huxton 2009-07-02 14:59:59 Re: Upgrading 8.3 to 8.4 on Windows.