pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <robertmhaas@gmail.com>
To: Ivan Voras <ivoras@freebsd.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Re: Postgres insert performance and storage requirement compared to Oracle
Date: Wed, 27 Oct 2010 22:01:07 -0400
Message-ID: <AANLkTimB0FG2fPQPLL4SVgLWHTh8pYn3pJODTPDeaEM1@mail.gmail.com> (raw)
In-Reply-To: <ia8tvj$15r$1@dough.gmane.org>
References: <402913.53404.qm@web65405.mail.ac4.yahoo.com>
	<AANLkTi=0iZDF7EHebukEJ+jxFN8giCy3iXxYuSe_mLUY@mail.gmail.com>
	<AANLkTi=cy67frLbx+YH_uUk5vqPsxt8u-Q_cpU74pYMq@mail.gmail.com>
	<208728.42197.qm@web65409.mail.ac4.yahoo.com>
	<AANLkTikeYj52q1v1RcwCYR=9Kv5mxJmh+Q+KvXcmibYK@mail.gmail.com>
	<770715.39613.qm@web29003.mail.ird.yahoo.com>
	<AANLkTinaW3ZtGJbzgAARG0WfAOJxSPAbdVAZa6X_2dh+@mail.gmail.com>
	<ia8tvj$15r$1@dough.gmane.org>

On Wed, Oct 27, 2010 at 6:13 AM, Ivan Voras <ivoras@freebsd.org> wrote:
> On 10/26/10 17:41, Merlin Moncure wrote:
>> On Tue, Oct 26, 2010 at 11:08 AM, Leonardo Francalanci <m_lists@yahoo.it> wrote:
>>>> temp  tables are not wal logged or
>>>> synced.  Periodically they can be flushed  to a permanent table.
>>>
>>>
>>> What do you mean with "Periodically they can be flushed  to
>>> a permanent table"? Just doing
>>>
>>> insert into tabb select * from temptable
>>>
>>
>> yup, that's exactly what I mean -- this will give you more uniform
>
> In effect, when so much data is in temporary storage, a better option
> would be to simply configure "synchronous_commit = off" (better in the
> sense that the application would not need to be changed). The effects
> are almost the same - in both cases transactions might be lost but the
> database will survive.

Gee, I wonder if it would possible for PG to automatically do an
asynchronous commit of any transaction which touches only temp tables.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



view thread (53+ messages)  latest in thread

Message-ID: <AANLkTimB0FG2fPQPLL4SVgLWHTh8pYn3pJODTPDeaEM1@mail.gmail.com>
Permalink:  ../AANLkTimB0FG2fPQPLL4SVgLWHTh8pYn3pJODTPDeaEM1@mail.gmail.com/
Also on:    postgresql.org/message-id/AANLkTimB0FG2fPQPLL4SVgLWHTh8pYn3pJODTPDeaEM1@mail.gmail.com

 · 

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: robertmhaas@gmail.com, ivoras@freebsd.org
  Subject: Re: Re: Postgres insert performance and storage requirement compared to Oracle
  In-Reply-To: <AANLkTimB0FG2fPQPLL4SVgLWHTh8pYn3pJODTPDeaEM1@mail.gmail.com>

* 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