pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Artiom Makarov <artiom.makarov@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: temp table "on commit delete rows": transaction overhead
Date: Mon, 5 Apr 2010 08:09:22 -0400 (EDT)
Message-ID: <201004051209.o35C9MB10324@momjian.us> (raw)
In-Reply-To: <q2td448ea361004050056ifed022e3t3ca6e2cca7eaac61@mail.gmail.com>

Artiom Makarov wrote:
> 2010/4/1 Bruce Momjian <bruce@momjian.us>:
> 
> > I think one of the problems is that we do the truncate even if the table
> > has not be touched by the query, which is poor behavior.
> 
> Thank you for the support.
> Will be this problem registered?

I have it on my personal TODO and will try to get it on the official
TODO soon.

> I see a workaround: switch off "on commit delete rows" on temp tables
> and use txid_current() to control transaction visibility.

OK.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com



view thread (6+ messages)

Message-ID: <201004051209.o35C9MB10324@momjian.us>
Permalink:  ../201004051209.o35C9MB10324@momjian.us/
Also on:    postgresql.org/message-id/201004051209.o35C9MB10324@momjian.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: bruce@momjian.us, artiom.makarov@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: temp table "on commit delete rows": transaction overhead
  In-Reply-To: <201004051209.o35C9MB10324@momjian.us>

* 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