pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Efrain J. Berdecia <ejberdecia@yahoo.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Subject: Re: pg_restore enhancements
Date: Thu, 23 Nov 2023 09:37:11 +0100
Message-ID: <368f73d6c7a1530d82f9c1c12a2cd0a14780b37a.camel@cybertec.at> (raw)
In-Reply-To: <383739960.7061560.1700672154915@mail.yahoo.com>
References: <362032628.6955904.1700659540303.ref@mail.yahoo.com>
	<362032628.6955904.1700659540303@mail.yahoo.com>
	<cc0c5cf5-4674-46a0-9c20-053aac907faa@aklaver.com>
	<383739960.7061560.1700672154915@mail.yahoo.com>

On Wed, 2023-11-22 at 16:55 +0000, Efrain J. Berdecia wrote:
> Thanks, the issue we've run into, which I guess could be really a setup
> issue, with running a COPY command while executing pg_restore, 
> is that if we are restoring a large table (bigger than 500GB) our WAL directory can grow to be very large.

You can avoidwriting WAL if you set "wal_level = minimal", restart PostgreSQL
and restore the dump with the --single-transaction option.

Yours,
Laurenz Albe





view thread (11+ messages)  latest in thread

Message-ID: <368f73d6c7a1530d82f9c1c12a2cd0a14780b37a.camel@cybertec.at>
Permalink:  ../368f73d6c7a1530d82f9c1c12a2cd0a14780b37a.camel@cybertec.at/
Also on:    postgresql.org/message-id/368f73d6c7a1530d82f9c1c12a2cd0a14780b37a.camel@cybertec.at

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, ejberdecia@yahoo.com, adrian.klaver@aklaver.com
  Subject: Re: pg_restore enhancements
  In-Reply-To: <368f73d6c7a1530d82f9c1c12a2cd0a14780b37a.camel@cybertec.at>
  References: <362032628.6955904.1700659540303.ref@mail.yahoo.com> <362032628.6955904.1700659540303@mail.yahoo.com> <cc0c5cf5-4674-46a0-9c20-053aac907faa@aklaver.com> <383739960.7061560.1700672154915@mail.yahoo.com> <368f73d6c7a1530d82f9c1c12a2cd0a14780b37a.camel@cybertec.at>

* 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