pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: John R Pierce <pierce@hogranch.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: a back up question
Date: Wed, 6 Dec 2017 09:57:15 -0500
Message-ID: <20171206145715.GA4628@tamriel.snowman.net> (raw)
In-Reply-To: <3ffd93e7-32e9-928e-18be-f4039e77d8c3@hogranch.com>
References: <001039C7-15DF-4A44-B0B9-3E100C9D68D3@northwestern.edu>
	<CAKFQuwaQkF6k2mi0DDSqn6aXuU-+gZQAMQwsoEzYehmApceLgg@mail.gmail.com>
	<6E6ED72C-BCC2-4F67-AEAC-C501DF2CAC58@northwestern.edu>
	<3ffd93e7-32e9-928e-18be-f4039e77d8c3@hogranch.com>

John, all,

* John R Pierce (pierce@hogranch.com) wrote:
> On 12/5/2017 2:09 PM, Martin Mueller wrote:
> >Time is not really a problem for me, if we talk about hours rather
> >than days.  On a roughly comparable machine I’ve made backups of
> >databases less than 10 GB, and it was a matter of minutes.  But I
> >know that there are scale problems. Sometimes programs just hang
> >if the data are beyond some size.  Is that likely in Postgres if
> >you go from ~ 10 GB to ~100 GB?  There isn’t any interdependence
> >among my tables beyond  queries I construct on the fly, because I
> >use the database in a single user environment
> 
> another factor is restore time.    restores have to create
> indexes.   creating indexes on multi-million-row tables can take
> awhile.  (hint, be sure to set maintenance_work_mem to 1GB before
> doing this!)

I'm sure you're aware of this John, but for others following along, just
to be clear: indexes have to be recreated when restoring from a
*logical* (eg: pg_dump based) backups.  Indexes don't have to be
recreated for *physical* (eg: file-based) backups.

Neither pg_dump nor the various physical-backup utilities should hang or
have issues with larger data sets.

Thanks!

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (15+ messages)  latest in thread

Message-ID: <20171206145715.GA4628@tamriel.snowman.net>
Permalink:  ../20171206145715.GA4628@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20171206145715.GA4628@tamriel.snowman.net

 · 

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: sfrost@snowman.net, pierce@hogranch.com
  Subject: Re: a back up question
  In-Reply-To: <20171206145715.GA4628@tamriel.snowman.net>
  References: <001039C7-15DF-4A44-B0B9-3E100C9D68D3@northwestern.edu> <CAKFQuwaQkF6k2mi0DDSqn6aXuU-+gZQAMQwsoEzYehmApceLgg@mail.gmail.com> <6E6ED72C-BCC2-4F67-AEAC-C501DF2CAC58@northwestern.edu> <3ffd93e7-32e9-928e-18be-f4039e77d8c3@hogranch.com> <20171206145715.GA4628@tamriel.snowman.net>

* 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