Re: CREATE table1 FROM table2 - Mailing list pgsql-sql

From scott.marlowe
Subject Re: CREATE table1 FROM table2
Date
Msg-id Pine.LNX.4.33.0306231100100.23895-100000@css120.ihs.com
Whole thread Raw
In response to Re: CREATE table1 FROM table2  ("L.V.Boldareva" <me@pierro.dds.nl>)
List pgsql-sql
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...





pgsql-sql by date:

Previous
From: Randall Lucas
Date:
Subject: Re: TR: Like and =
Next
From: Rod Taylor
Date:
Subject: Re: convert_numeric_to_scalar: unsupported type 354210