X-Original-To: pgsql-sql@postgresql.org Received: from localhost (unknown [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 28C83925053 for ; Tue, 20 May 2003 12:21:22 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 05979-05 for ; Tue, 20 May 2003 12:21:15 -0400 (EDT) Received: from news.hub.org (unknown [64.117.225.234]) by developer.postgresql.org (Postfix) with ESMTP id 4B26B925052 for ; Tue, 20 May 2003 12:21:15 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 7732D2534AC; Tue, 20 May 2003 12:21:13 -0400 (EDT) From: Jeff Boes X-Newsgroups: comp.databases.postgresql.sql Subject: Re: Performance on temp table inserts Date: Tue, 20 May 2003 12:21:13 -0400 Organization: Nexcerpt, Inc. Lines: 36 Message-ID: References: <4d5op-4h3.ln1@my-pc.ntlworld.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@news.hub.org User-Agent: Pan/0.11.4 (Unix) X-Comment-To: "David W Noon" To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/388 X-Sequence-Number: 13553 On Mon, 19 May 2003 19:19:32 -0400, David W Noon wrote: > On Monday 19 May 2003 20:11 in , Jeff Boes > (jboes@nexcerpt.com) wrote: > >> What factors affect the performance of a temp table insert? > > I would run an EXPLAIN on each of the two servers and see what > differences there are in the respective execution strategies. > Hmm ... I'm not sure you followed my original post. However, in the interests of science: explain insert into temp_link_checksums values ('a'); NOTICE: QUERY PLAN: Result (cost=0.00..0.01 rows=1 width=0) EXPLAIN This is identical on the two systems. As I would expect for an insert statement ... > Also, a VACUUM ANALYZE might be of interest to speed up the slower box. But the table doesn't exist before I create and insert it. (Well, actually it does: after the first CREATE, the subsequent uses of the table are preceded by TRUNCATE TABLE, so it exists but is empty. I dunno what a VACUUM ANALYZE will do for an insert, though.) -- Jeff Boes vox 269.226.9550 ext 24 Database Engineer fax 269.349.9076 Nexcerpt, Inc. http://www.nexcerpt.com ...Nexcerpt... Extend your Expertise