Nicer dump files?

From: Gerhard Häring <haering_postgresql(at)gmx(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Nicer dump files?
Date: 2002-09-25 22:54:16
Message-ID: slrnap4fcc.41i.haering_python@lilith.my-fqdn.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ok, now I have played with psql and created a few tables. If I use
pg_dump I get relatively awkward scripts that look like:

CREATE TABLE "person" (
"id" integer DEFAULT nextval('"person_id_seq"'::text) NOT NULL,
"login" character varying(20) NOT NULL,
...

Is there a way to get a nicer looking script that will look like:

create table person (
id int serial,
login varchar(20) not null
...

? IOW similar to the commands one would use as a human to create the
tables?

Another somehow related question:

Are there any db design tools like Sybase PowerDesigner that support
PostgreSQL? Perhaps in a more reasonable price range?

Thanks,

-- Gerhard

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Patrick Welche 2002-09-25 22:54:56 Re: Relation 0 does not exist
Previous Message Tom Lane 2002-09-25 22:46:27 Re: Relation 0 does not exist