pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lane Van Ingen <lvaningen@esncc.com>
To: pgsql-admin@postgresql.org
Subject: Defer Committing Updates on High-Activity Table
Date: Wed, 3 Aug 2005 14:47:14 -0400
Message-ID: <EKEMKEFLOMKDDLIALABIOEAFCBAA.lvaningen@esncc.com> (raw)

I have a situation where I have a temporary table (because of how it is
being used) that creates a lot of (legitimate) I/O activity. The table
contains information which is transient and tends to stay in shared buffers
because of frequency of use, and it is only necessary to commit the changes
to disk every hour or so (mainly for backup purposes).

I was wondering if I could use CREATE TEMPORARY TABLE <tblname> ... ON
COMMIT PRESERVE ROWS to basically defer the commit of changes to hard disk
until I say 'COMMIT'. The database is non-logging; don't know if use of
COMMIT will be affected by that or not.

If the above won't get me what I want, does anyone have suggestions of
another way to get the same effect? The effect I want is a temporary table
that can be updated in RAM, but not create a lot of I/O activity to the
disk.





view thread (2+ messages)  latest in thread

Message-ID: <EKEMKEFLOMKDDLIALABIOEAFCBAA.lvaningen@esncc.com>
Permalink:  ../EKEMKEFLOMKDDLIALABIOEAFCBAA.lvaningen@esncc.com/
Also on:    postgresql.org/message-id/EKEMKEFLOMKDDLIALABIOEAFCBAA.lvaningen@esncc.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: lvaningen@esncc.com
  Subject: Re: Defer Committing Updates on High-Activity Table
  In-Reply-To: <EKEMKEFLOMKDDLIALABIOEAFCBAA.lvaningen@esncc.com>
  References: <EKEMKEFLOMKDDLIALABIOEAFCBAA.lvaningen@esncc.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