Re: Hot disable WAL archiving

From: Sameer Kumar <sameer(dot)kumar(at)ashnik(dot)com>
To: Igor Neyman <ineyman(at)perceptron(dot)com>, Job <Job(at)colliniconsulting(dot)it>, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Hot disable WAL archiving
Date: 2016-06-17 13:15:18
Message-ID: CADp-Sm43TnY5QVw_CQBD_BKXuW3kx_qeRJ8K-VcAK8Opr-ROOA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 17 Jun 2016, 9:12 p.m. Igor Neyman, <ineyman(at)perceptron(dot)com> wrote:

>
> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org [mailto:
> pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Job
> Sent: Friday, June 17, 2016 9:01 AM
> To: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>; pgsql-general(at)postgresql(dot)org
> Subject: [GENERAL] R: Hot disable WAL archiving
>
> Hi Albe and thank you, first of all.
>
> Is there a way to disable Wal logging only for specific table, permanently?
>

Yes.

You can set it to NO LOGGING

Alter table table_name set unlogged;

https://www.postgresql.org/docs/9.5/static/sql-altertable.html

>
> Thank you again!
> Francesco
>
> ________________________________________
> Da: Albe Laurenz [laurenz(dot)albe(at)wien(dot)gv(dot)at]
> Inviato: venerdì 17 giugno 2016 13.48
> A: Job; pgsql-general(at)postgresql(dot)org
> Oggetto: RE: Hot disable WAL archiving
>
> Job wrote:
> > is there a way in Postgresql-9.5 to disable temporarily WAL archiving
> > to speed up pg_bulkload with restarting database engine?
>
>
> You can set 'archive_command=/bin/true' and reload, then no WAL archives
> will be written.
>
> Make sure to perform a base backup as soon as your bulk load is finished.
>
> Yours,
> Laurenz Albe
>
> --
>
> Francesco,
>
> Check CREATE UNLOGGED TABLE... in the docs.
>
> Regards,
> Igor
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
--
--
Best Regards
Sameer Kumar | DB Solution Architect
*ASHNIK PTE. LTD.*

101 Cecil Street, #11-11 Tong Eng Building, Singapore 069 533

T: +65 6438 3504 | M: +65 8110 0350 | www.ashnik.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2016-06-17 13:31:51 Re: random huge delay when recreate a VIEW or FUNCTION
Previous Message Igor Neyman 2016-06-17 13:11:56 Re: Hot disable WAL archiving