Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-performance by date

Next:From: Robert HaasDate: 2010-03-30 19:59:46
Subject: Re: experiments in query optimization
Previous:From: Faheem MithaDate: 2010-03-30 17:19:40
Subject: Re: experiments in query optimization

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group