pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Subject: Re: unlogged tables
Date: Tue, 15 Nov 2011 12:51:01 -0800
Message-ID: <4EC2D0B5.6060901@agliodbs.com> (raw)
In-Reply-To: <4EC100810200002500042E7C@gw.wicourts.gov>
References: <005501cca0ad$b9478440$2bd68cc0$@devshock.com>
	<20111111201822.GN24234@tamriel.snowman.net>
	<CAL_0b1t02q77ft2JWdjMv8q4vaGm=x__K0rzVkpNSvSy2-SjzA@mail.gmail.com>
	<4EC0D827.8090601@archonet.com>
	<CAL_0b1tuxi9YVhGKsNUSTZCUBXgOmppan7w+KkRZARbQ=u4P5w@mail.gmail.com>
	<4EC0EAD6.9010302@archonet.com>
	<CAL_0b1sSyTgMUxcRi+2ibTHHV4-qH3fvacsQUCbbeBsu0jYGAQ@mail.gmail.com>
	<00ea01cca2ef$abcf3a30$036dae90$@devshock.com>
	<4EC0FAE80200002500042E6C@gw.wicourts.gov>
	<00ff01cca2f4$3cb86860$b6293920$@devshock.com>
	<4EC100810200002500042E7C@gw.wicourts.gov>


>> Unlogged table can increase speed, this table has about 1.6
>> millions of update per hour, but unlogged with a chance of loss
>> all information on a crash are not a good idea for this.
>  
> pg_dump -t 'tablename' from a cron job?  (Make sure to rotate dump
> file names, maybe with day of week or some such.)

Or just "CREATE TABLE AS" copy the table every hour to a second, backup
table.  Then it would be much easier to script automated restore of the
data.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



view thread (42+ messages)  latest in thread

Message-ID: <4EC2D0B5.6060901@agliodbs.com>
Permalink:  ../4EC2D0B5.6060901@agliodbs.com/
Also on:    postgresql.org/message-id/4EC2D0B5.6060901@agliodbs.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: josh@agliodbs.com
  Subject: Re: unlogged tables
  In-Reply-To: <4EC2D0B5.6060901@agliodbs.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