Re: cannot get CREATE TABLE AS to work
От | Josh Berkus |
---|---|
Тема | Re: cannot get CREATE TABLE AS to work |
Дата | |
Msg-id | 3AA90E65.CF04E297@agliodbs.com обсуждение исходный текст |
Ответ на | cannot get CREATE TABLE AS to work ("Creager, Robert S" <CreagRS@LOUISVILLE.STORTEK.COM>) |
Список | pgsql-sql |
Robert, > Thanks for the pointers. I'm actually working on modifying the structure of > an existing db, so this is all within Pg. Those INSERT INTOs with SELECTs > are painfully slow, and I have an larger table to do this to... I guess > Perl will have to rescue me... Why don't you post your SQL statements, table definitions, and estimate results? I'm sure one or more of the performance experts (Tom Stephan) could find some improvements. It doesn't makes sense that CREATE TABLE AS should be faster than INSERT INTO ... SELECT. It should be *slower* unless you have 2 dozen indexes on the target table. -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 по дате отправления: