pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: More efficient pg_restore method?
Date: Thu, 30 Aug 2018 12:30:27 -0500
Message-ID: <ee4c5ab8-f86e-c101-5533-3dc946f794f5@gmail.com> (raw)
In-Reply-To: <44555188-c787-b441-5c69-c56f72905bf4@gmail.com>
References: <44555188-c787-b441-5c69-c56f72905bf4@gmail.com>

On 08/28/2018 11:48 AM, Ron wrote:
>
> Pg 9.6.9 on Linux...
>
> Given a backup server storing a "format=directory" database backup, and a 
> database server, should I:
>
> Option #1: run pg_restore on the backup server and "push" the data to the 
> database server via port 5432, or
> Option #2: have the backup server serve the dump directory via NFS, and 
> run pg_restore on the database server, pulling the data via nfs protocol?
>
> (It'll be a multi-threaded restore over a 10Gb pipe.)

Turns out that pushing the data over port 5432 is about 3x faster than 
pulling it across nfs (at least when a WAN is involved).

-- 
Angular momentum makes the world go 'round.




view thread (5+ messages)

Message-ID: <ee4c5ab8-f86e-c101-5533-3dc946f794f5@gmail.com>
Permalink:  ../ee4c5ab8-f86e-c101-5533-3dc946f794f5@gmail.com/
Also on:    postgresql.org/message-id/ee4c5ab8-f86e-c101-5533-3dc946f794f5@gmail.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-admin@postgresql.org
  Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: More efficient pg_restore method?
  In-Reply-To: <ee4c5ab8-f86e-c101-5533-3dc946f794f5@gmail.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