Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id D938D1336FA7 for ; Thu, 28 Oct 2010 00:32:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 71854-07 for ; Thu, 28 Oct 2010 03:32:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id B4B03133616B for ; Thu, 28 Oct 2010 00:32:28 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o9S3WPds003990; Wed, 27 Oct 2010 23:32:25 -0400 (EDT) To: Robert Haas cc: Ivan Voras , pgsql-performance@postgresql.org Subject: Re: Re: Postgres insert performance and storage requirement compared to Oracle In-reply-to: References: <402913.53404.qm@web65405.mail.ac4.yahoo.com> <208728.42197.qm@web65409.mail.ac4.yahoo.com> <770715.39613.qm@web29003.mail.ird.yahoo.com> Comments: In-reply-to Robert Haas message dated "Wed, 27 Oct 2010 22:01:07 -0400" Date: Wed, 27 Oct 2010 23:32:25 -0400 Message-ID: <3989.1288236745@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/527 X-Sequence-Number: 40945 Robert Haas writes: > Gee, I wonder if it would possible for PG to automatically do an > asynchronous commit of any transaction which touches only temp tables. Hmm ... do we need a commit at all in such a case? If our XID has only gone into temp tables, I think we need to write to clog, but we don't really need a WAL entry, synced or otherwise. regards, tom lane