From: Josh Berkus <josh@agliodbs.com>
To: Creager, Robert S <CreagRS@LOUISVILLE.STORTEK.COM>
To: sqllist <pgsql-sql@postgresql.org>
Subject: Re: cannot get CREATE TABLE AS to work
Date: Fri, 09 Mar 2001 09:09:57 -0800
Message-ID: <3AA90E65.CF04E297@agliodbs.com> (raw)
References: <10FE17AD5F7ED31188CE002048406DE8514CE2@lsv-msg06.stortek.com>
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 information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, CreagRS@LOUISVILLE.STORTEK.COM
Subject: Re: cannot get CREATE TABLE AS to work
In-Reply-To: <3AA90E65.CF04E297@agliodbs.com>
References: <10FE17AD5F7ED31188CE002048406DE8514CE2@lsv-msg06.stortek.com> <3AA90E65.CF04E297@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox