From: scott.marlowe <scott.marlowe@ihs.com>
To: L.V.Boldareva <me@pierro.dds.nl>
Cc: pgsql-sql@postgresql.org
Subject: Re: CREATE table1 FROM table2
Date: Mon, 23 Jun 2003 11:01:19 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0306231100100.23895-100000@css120.ihs.com> (raw)
In-Reply-To: <98966401561.20030623172606@pierro.dds.nl>
On Mon, 23 Jun 2003, L.V.Boldareva wrote:
> Hello!
>
> many people posted their answer to this simple question. however,
> neither
> CREATE TABLE AS
> nor
> SELECT INTO
>
> do not take care about keys and triggers, etc.
>
> The commands above only copy the structure of the table, and the data.
> Are there any workarounds fr copying the table as a whole object?
You probably want to use pg_dump dbname -t tablename and edit the file
thus created by hand to create a new table etc...
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: scott.marlowe@ihs.com, me@pierro.dds.nl
Subject: Re: CREATE table1 FROM table2
In-Reply-To: <Pine.LNX.4.33.0306231100100.23895-100000@css120.ihs.com>
* 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