Re: Performance on temp table inserts - Mailing list pgsql-sql

From Tom Lane
Subject Re: Performance on temp table inserts
Date
Msg-id 29494.1053446676@sss.pgh.pa.us
Whole thread Raw
In response to Re: Performance on temp table inserts  (Jeff Boes <jboes@nexcerpt.com>)
Responses Re: Performance on temp table inserts
List pgsql-sql
Jeff Boes <jboes@nexcerpt.com> writes:
>>> What factors affect the performance of a temp table insert?
>> 
>> PG version would have a lot to do with that, considering how we've
>> whacked around the temp-table implementation in the last few releases.

> PG version is 7.2.4.

IIRC, temp tables are really indistinguishable from regular tables in
7.2, as far as performance goes.  The bottleneck for the bare insert
itself would probably be WAL --- are you sure all the WAL settings are
the same on the two boxes?  If you have indexes, foreign keys, triggers,
rules, etc on the table then of course you have other overhead to worry
about ... but that seems somewhat unlikely for a temp table.

Also, is the temp table being filled in the same transaction that
created it, or in separate transaction(s)?  That makes a difference in
7.2 and before (but not in 7.3).
        regards, tom lane


pgsql-sql by date:

Previous
From: ww zz
Date:
Subject: how to do this query?
Next
From: Jeff Boes
Date:
Subject: Re: Performance on temp table inserts