Re: cannot get CREATE TABLE AS to work - Mailing list pgsql-sql

From Josh Berkus
Subject Re: cannot get CREATE TABLE AS to work
Date
Msg-id 3AA922C7.CFD72698@agliodbs.com
Whole thread Raw
In response to cannot get CREATE TABLE AS to work  ("Creager, Robert S" <CreagRS@LOUISVILLE.STORTEK.COM>)
Responses Re: cannot get CREATE TABLE AS to work
List pgsql-sql
Robert,

> I suspect that the INSERT INTO SELECT in this case will take longer than a
> CREATE TABLE AS because of the referential integrity check needed on every
> INSERT (per Tom Lane).

In that case, what about:

a) dropping the referential integrity check;
2) making the referential integrity check deferrable (there's a way to
do this, it was discussed a couple weeks ago - ask Tom).

-Josh Berkus


-- 
______AGLIO DATABASE SOLUTIONS___________________________                                       Josh Berkus  Complete
informationtechnology      josh@agliodbs.com   and data management solutions       (415) 565-7293  for law firms, small
businesses      fax  621-2533   and non-profit organizations.       San Francisco
 


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: cannot get CREATE TABLE AS to work
Next
From: Stephan Szabo
Date:
Subject: Re: cannot get CREATE TABLE AS to work