From: | Manfred Koizar <mkoi-pg(at)aon(dot)at> |
---|---|
To: | Gerhard Häring <haering_postgresql(at)gmx(dot)de> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Nicer dump files? |
Date: | 2002-09-26 14:14:10 |
Message-ID: | 5c56pu8rr1f3rv8nvbjevd9rev96ar1lh3@4ax.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, 25 Sep 2002 22:54:16 +0000 (UTC), Gerhard Häring
<haering_postgresql(at)gmx(dot)de> wrote:
>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
> ...
Gerhard,
pg_dump --help
...
-n, --no-quotes suppress most quotes around identifiers
Is this what you want?
Servus
Manfred
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2002-09-26 14:15:57 | Re: Adding "on delete cascade" after table creation ? |
Previous Message | Tom Lane | 2002-09-26 14:11:09 | Re: postmaster -d option (was Re: [GENERAL] Relation 0 does not exist) |