pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: 'Richard Huxton' <dev@archonet.com>
To: Anibal David Acosta <aa@devshock.com>
To: 'Sergey Konoplev' <gray.ru@gmail.com>
Cc: pgsql-performance@postgresql.org
Cc: 'Stephen Frost' <sfrost@snowman.net>
Subject: Re: unlogged tables
Date: Mon, 14 Nov 2011 11:50:25 -0600
Message-ID: <4EC100810200002500042E7C@gw.wicourts.gov> (raw)
In-Reply-To: <00ff01cca2f4$3cb86860$b6293920$@devshock.com>
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>

"Anibal David Acosta" <aa@devshock.com> wrote:
 
> I am doing asynchronous commit but sometimes I think that there
> are so  many "things" in an insert/update transaction, for a table
> that has not too much important information.
> 
> My table is a statistics counters table, so I can live with a
> partial data loss, but not with a full data loss because many
> counters are weekly and monthly.
> 
> 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.)
 
-Kevin



view thread (42+ messages)  latest in thread

Message-ID: <4EC100810200002500042E7C@gw.wicourts.gov>
Permalink:  ../4EC100810200002500042E7C@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4EC100810200002500042E7C@gw.wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, dev@archonet.com, aa@devshock.com, gray.ru@gmail.com, sfrost@snowman.net
  Subject: Re: unlogged tables
  In-Reply-To: <4EC100810200002500042E7C@gw.wicourts.gov>

* 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