Re: PostgreSQL data loads - turn off WAL

From: Jayadevan M <jayadevan(dot)maymala(at)ibsplc(dot)com>
To: 'hartrc' <rhart2(at)mt(dot)gov>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: PostgreSQL data loads - turn off WAL
Date: 2012-09-26 03:25:39
Message-ID: 3411BBAFF5A2244FA405CC91D9473A609B8547@PBOX2.ibsplc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
> Basically my question is:
> Is there currently any way to avoid wal generation during data load for given
> tables and then have point in time recovery after that?
Please have a look at unlogged and temporary options here -
http://www.postgresql.org/docs/9.1/static/sql-createtable.html
I don't think they are crash safe and point in time recovery may not be possible for these tables.
If this is something similar to a daily load in a data warehouse, you could consider using temporary tables for all the processing/aggregation and then move data to the target tables (real, logged tables). This url might also help -
http://www.postgresql.org/docs/9.1/static/populate.html
Regards,
Jayadevan

DISCLAIMER: "The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly contact the sender and destroy all copies of the original communication. IBS makes no warranty, express or implied, nor guarantees the accuracy, adequacy or completeness of the information contained in this email or any attachment and is not liable for any errors, defects, omissions, viruses or for resultant loss or damage, if any, direct or indirect."

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2012-09-26 04:27:48 Re: In one of negative test row-level trigger results into loop
Previous Message Shiran Kleiderman 2012-09-26 01:00:53 Re: Memory issues