pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Kaijiang Chen <chenkaijiang@gmail.com>
Cc: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: Oleksandr Shulgin <oleksandr.shulgin@zalando.de>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: pg_dump's results have quite different size
Date: Tue, 20 Dec 2016 08:50:18 -0500
Message-ID: <20161220135018.GY18360@tamriel.snowman.net> (raw)
In-Reply-To: <CAAkGvS8CYV=9jpzK2NHhbO40nY_7enCszOniUYdf7hr2dsDxTA@mail.gmail.com>
References: <CAAkGvS_VqsiqJsBOSA+Myxzez=pprR8+WjKEm3h=KhYAne7m5w@mail.gmail.com>
	<CAAkGvS-qnQ8ZGJ0C-ttiym6QVpHyDogZa=_fPdUbSyKrt85zPA@mail.gmail.com>
	<CACACo5R_fWpgtFgwYCXRK-U2WO=ueAdT3eZKYKXQHRfCStqhXw@mail.gmail.com>
	<CAAkGvS_aTgMuqh7_VGB+U0q0yC6wYLzOTSREog=yyyQkmFbDPA@mail.gmail.com>
	<CACACo5QRXyxKc6hm=mDNAQeS=bWa99u8odAGVv_mGEqNephPXQ@mail.gmail.com>
	<3b9af4ce-edba-0006-43a0-31ce6d7624f5@catalyst.net.nz>
	<CAMkU=1yauFWZoXjnppBk0z53VBN-dyvUsHA5W-NKLKr1a07zYA@mail.gmail.com>
	<543408b3-6724-3c13-16a2-4239aee99cd0@catalyst.net.nz>
	<CAAkGvS8CYV=9jpzK2NHhbO40nY_7enCszOniUYdf7hr2dsDxTA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Greetings,

* Kaijiang Chen (chenkaijiang@gmail.com) wrote:
> After I enlarged the max_standby_streaming_delay, it works well for some
> days (I have to increase the max_standby_streaming_delay when data is
> bigger).
> 
> Thank you all!
> 
> A suggestion might be: pg_dump from the standby is frequently used in
> backup tasks; it'll be much better if we have some options to ensure the
> pg_dump to finish; for example, an option to temporary stop the
> replication? Or do we already have some approach?

If you don't want long-running transactions on the replica to be killed
then you can enable hot standby feedback, but you'll have to accept that
there may be additional bloat on the master then.

Another option might be to consider alternative backup methods, such as
using physical backup tools instead of pg_dump.

Thanks!

Stephen

Attachments:

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

view thread (12+ messages)  latest in thread

Message-ID: <20161220135018.GY18360@tamriel.snowman.net>
Permalink:  ../20161220135018.GY18360@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20161220135018.GY18360@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-bugs@postgresql.org
  Cc: sfrost@snowman.net, chenkaijiang@gmail.com, mark.kirkwood@catalyst.net.nz, jeff.janes@gmail.com, oleksandr.shulgin@zalando.de
  Subject: Re: pg_dump's results have quite different size
  In-Reply-To: <20161220135018.GY18360@tamriel.snowman.net>
  References: <CAAkGvS_VqsiqJsBOSA+Myxzez=pprR8+WjKEm3h=KhYAne7m5w@mail.gmail.com> <CAAkGvS-qnQ8ZGJ0C-ttiym6QVpHyDogZa=_fPdUbSyKrt85zPA@mail.gmail.com> <CACACo5R_fWpgtFgwYCXRK-U2WO=ueAdT3eZKYKXQHRfCStqhXw@mail.gmail.com> <CAAkGvS_aTgMuqh7_VGB+U0q0yC6wYLzOTSREog=yyyQkmFbDPA@mail.gmail.com> <CACACo5QRXyxKc6hm=mDNAQeS=bWa99u8odAGVv_mGEqNephPXQ@mail.gmail.com> <3b9af4ce-edba-0006-43a0-31ce6d7624f5@catalyst.net.nz> <CAMkU=1yauFWZoXjnppBk0z53VBN-dyvUsHA5W-NKLKr1a07zYA@mail.gmail.com> <543408b3-6724-3c13-16a2-4239aee99cd0@catalyst.net.nz> <CAAkGvS8CYV=9jpzK2NHhbO40nY_7enCszOniUYdf7hr2dsDxTA@mail.gmail.com> <20161220135018.GY18360@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