From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | Bob Powell <Bob(at)hotchkiss(dot)org> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Create AS question |
Date: | 2004-12-10 21:45:02 |
Message-ID: | 41BA18DE.5070808@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Bob Powell wrote:
>Hello everyone:
>
>If I excute the following:
>
>CREATE table Test_backup as
>SELECT * FROM Test_Scores;
>
>it creates my table without the original table's constraints or
>triggers.
>
>Is there a way to preserve them in the copy?
>
>
Only if you create a schema dump of just the table and then
use insert into foo select * from bar
Sincerely,
Joshua D. Drake
>Thanks.
>
>Bob Powell
>Database Administrator
>
>---------------------------(end of broadcast)---------------------------
>TIP 7: don't forget to increase your free space map settings
>
>
--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd(at)commandprompt(dot)com - http://www.commandprompt.com
PostgreSQL Replicator -- production quality replication for PostgreSQL
Attachment | Content-Type | Size |
---|---|---|
jd.vcf | text/x-vcard | 285 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Clark Endrizzi | 2004-12-10 21:47:53 | Natural ordering in postgresql? Does it exist? |
Previous Message | John Allgood | 2004-12-10 21:44:30 | Postgres 7.4.6 x86_64 RPMS |