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

Re: Create and drop temp table in 8.3.4

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Scott Carey" <scott(at)richrelevance(dot)com>
Cc: <jd(at)commandprompt(dot)com>,<pgsql-performance(at)postgresql(dot)org>
Subject: Re: Create and drop temp table in 8.3.4
Date: 2008-11-06 21:49:59
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
>>> "Scott Carey" <scott(at)richrelevance(dot)com> wrote: 
> Note that Write Barriers can be very important for data integrity
when power
> loss or hardware failure are a concern.  Only disable them if you
know the
> consequences are mitigated by other factors (such as a BBU + db using
> WAL log with sync writes), or if you accept the additional risk to
> loss.
For those using xfs, this link may be useful:
> On Temp Tables:
> I am a bit ignorant on the temp table relationship to file creation
-- it
> makes no sense to me at all that a file would even be created for a
> table unless it spills out of RAM or is committed.  Inside of a
> shouldn't they be purely in-memory if there is space?  Is there any
way to
> prevent the file creation?  This seems like a total waste of time for
> temp table use cases, and explains why they were so slow in some
> testing we did a few months ago.
As I learned today, creating a temporary table in PostgreSQL can
easily create four files and do dozens of updates to system tables;
that's all before you start actually inserting any data into the
temporary table.

In response to

pgsql-performance by date

Next:From: Scott MarloweDate: 2008-11-06 22:05:21
Subject: Re: Create and drop temp table in 8.3.4
Previous:From: Scott CareyDate: 2008-11-06 21:05:06
Subject: Re: Create and drop temp table in 8.3.4

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