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@no-spam - http://www.commandprompt.com
PostgreSQL Replicator -- production quality replication for PostgreSQL
begin:vcard
fn:Joshua Drake
n:Drake;Joshua
org:Command Prompt, Inc.
adr:;;PO Box 215 ;Cascade Locks;OR;97014;US
email;internet:jd@no-spam
title:Consultant
tel;work:503-667-4564
tel;fax:503-210-0334
x-mozilla-html:FALSE
url:http://www.commandprompt.com
version:2.1
end:vcard
[plaintext jd.vcf.1102715102.1347043699]
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html