From: Martin Fandel <martin.fandel@alphyra-evs.de>
To: chen@musc.edu
Cc: pgsql-admin@postgresql.org
Subject: Re: change existing table definition
Date: Tue, 28 Jun 2005 22:04:39 +0200
Message-ID: <1119989080.8406.10.camel@localhost.localdomain> (raw)
In-Reply-To: <42C18860.1010906@musc.edu>
References: <42C15044.4030407@musc.edu>
> pg_dump -c -t <table name> <database> > <dumpfile>
> psql <database> < <dumpfile>
I don't tested this but i think this works.
Be dangerous with the "-c" Option of dump ;). After
the dump was created, new data could be inserted into the
database. If you dump in the file, all dumped tables are
dropped. It's better to RENAME the existing table and then
COPY in the data.
greetings,
Martin
Am Dienstag, den 28.06.2005, 13:26 -0400 schrieb Chuming Chen:
> pgsql-admin@postgresql.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: martin.fandel@alphyra-evs.de, chen@musc.edu
Subject: Re: change existing table definition
In-Reply-To: <1119989080.8406.10.camel@localhost.localdomain>
References: <42C15044.4030407@musc.edu> <1119989080.8406.10.camel@localhost.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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