Re: Re: Postgres 9.4 unlogged table. Under any circumstance after server crash would data persist?

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Keith <keith(at)keithf4(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org, "Stephen Tahmosh *EXTERN*" <stahmosh(at)shieldsrx(dot)com>, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Subject: Re: Re: Postgres 9.4 unlogged table. Under any circumstance after server crash would data persist?
Date: 2016-02-03 17:08:43
Message-ID: CAECtzeU4wB92ESkZT4YWHurqS_L9nk2e4fQv3fMYP+Jt+ZZGtg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Le 3 févr. 2016 5:30 PM, "Keith" <keith(at)keithf4(dot)com> a écrit :
>
>
>
> On Wed, Feb 3, 2016 at 7:42 AM, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
wrote:
>>
>> Stephen Tahmosh wrote:
>> > Is there any case where this data, in an unlogged table, would persist
through a server “crash”?
>> > (however caused).
>>
>> No.
>> That is the price you pay for avoiding transaction logs.
>>
>> Yours,
>> Laurenz Albe
>>
>> --
>> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-admin
>
>
> If you upgrade to 9.5, you can take advantage of the fact that you can
convert an unlogged table to a logged one with an ALTER TABLE statement. I
believe this does a full rewrite of the table again, but you may be able to
incorporate that into your ETL process if it ends up still being quicker
than doing the ETL directly on a normal table.
>
>
http://www.postgresql.org/docs/9.5/static/sql-createtable.html#SQL-CREATETABLE-UNLOGGED

>

It doesn't rewrite the whole table, but it puts its whole content in the
WAL files.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Stephen Tahmosh 2016-02-03 17:19:29 Re: Re: Postgres 9.4 unlogged table. Under any circumstance after server crash would data persist?
Previous Message Keith 2016-02-03 16:28:11 Re: Re: Postgres 9.4 unlogged table. Under any circumstance after server crash would data persist?