Re: temp table "on commit delete rows": transaction overhead

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Artiom Makarov <artiom(dot)makarov(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: temp table "on commit delete rows": transaction overhead
Date: 2010-03-30 17:50:56
Message-ID: 26236.1269971456@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Artiom Makarov <artiom(dot)makarov(at)gmail(dot)com> writes:
> When temp tables with "on commit delete rows" exists, I can see a
> strange delay at any begin and commit.

A delay at commit is hardly surprising, because each such temp table
requires filesystem operations at commit (basically an "ftruncate").
I don't recall any operations at transaction start for such tables,
but there may be some.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Robert Haas 2010-03-30 19:59:46 Re: experiments in query optimization
Previous Message Faheem Mitha 2010-03-30 17:19:40 Re: experiments in query optimization