Re: cannot get CREATE TABLE AS to work

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: cannot get CREATE TABLE AS to work
Дата
Msg-id 3AA922C7.CFD72698@agliodbs.com
обсуждение исходный текст
Ответ на cannot get CREATE TABLE AS to work  ("Creager, Robert S" <CreagRS@LOUISVILLE.STORTEK.COM>)
Ответы Re: cannot get CREATE TABLE AS to work  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: cannot get CREATE TABLE AS to work
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: cannot get CREATE TABLE AS to work