pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Sergey Konoplev <gray.ru@gmail.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Anibal David Acosta <aa@devshock.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: unlogged tables
Date: Mon, 14 Nov 2011 08:58:15 +0000
Message-ID: <4EC0D827.8090601@archonet.com> (raw)
In-Reply-To: <CAL_0b1t02q77ft2JWdjMv8q4vaGm=x__K0rzVkpNSvSy2-SjzA@mail.gmail.com>
References: <005501cca0ad$b9478440$2bd68cc0$@devshock.com>
	<20111111201822.GN24234@tamriel.snowman.net>
	<CAL_0b1t02q77ft2JWdjMv8q4vaGm=x__K0rzVkpNSvSy2-SjzA@mail.gmail.com>

On 14/11/11 08:10, Sergey Konoplev wrote:
> Hi,
>
> On 12 November 2011 00:18, Stephen Frost<sfrost@snowman.net>  wrote:
>> In a crash, unlogged tables are automatically truncated.
>
> BTW I wonder what for they are truncated in a crash case?

Because they bypass the transaction-log (WAL), hence unlogged.

There's no way to know whether there were partial updates applied when 
the system restarts.

-- 
   Richard Huxton
   Archonet Ltd



view thread (42+ messages)  latest in thread

Message-ID: <4EC0D827.8090601@archonet.com>
Permalink:  ../4EC0D827.8090601@archonet.com/
Also on:    postgresql.org/message-id/4EC0D827.8090601@archonet.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: dev@archonet.com, gray.ru@gmail.com, sfrost@snowman.net, aa@devshock.com
  Subject: Re: unlogged tables
  In-Reply-To: <4EC0D827.8090601@archonet.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