Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id F1F259FA0CC for ; Tue, 19 Dec 2006 12:59:58 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 05389-07-2 for ; Tue, 19 Dec 2006 12:59:23 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 2695F9F946C for ; Tue, 19 Dec 2006 12:59:17 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kBJGxFAx029552; Tue, 19 Dec 2006 11:59:15 -0500 (EST) To: "Steven Flatt" cc: pgsql-performance@postgresql.org Subject: Re: Insertion to temp table deteriorating over time In-reply-to: <357fa7590612190743lc9201fey6519737114881080@mail.gmail.com> References: <357fa7590612130844q58ef3ca5q31e164f9b006e0fc@mail.gmail.com> <12508.1166206006@sss.pgh.pa.us> <357fa7590612151026t4ae033f6w5367cac9d0b67064@mail.gmail.com> <13947.1166209788@sss.pgh.pa.us> <357fa7590612151121x5f95102fj21a96b1bdc7eb002@mail.gmail.com> <20792.1166211026@sss.pgh.pa.us> <357fa7590612180951q3da4c840l27caa82475444cfb@mail.gmail.com> <19298.1166464855@sss.pgh.pa.us> <357fa7590612181506r69a17e37x271623007f27c877@mail.gmail.com> <17718.1166515736@sss.pgh.pa.us> <357fa7590612190743lc9201fey6519737114881080@mail.gmail.com> Comments: In-reply-to "Steven Flatt" message dated "Tue, 19 Dec 2006 10:43:13 -0500" Date: Tue, 19 Dec 2006 11:59:15 -0500 Message-ID: <29551.1166547555@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/476 X-Sequence-Number: 22532 "Steven Flatt" writes: > I can't reproduce the problem that way either (or when using a server-side > PLpgSQL function to do similar). It looks like you have to go through an > ODBC connection, with the looping done on the client side. Each individual > insert to the temp table needs to be sent over the connection and this is > what degrades over time. I can reproduce on 7.4.6 and 8.1.4. I have a > small C program to do this which I can send you offline if you're > interested. Please. regards, tom lane