Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJKpm-0003tt-Tb for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Dec 2016 13:52:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cJKpm-0001Gc-BK for pgsql-bugs@arkaria.postgresql.org; Tue, 20 Dec 2016 13:52:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cJKp7-0000Xi-G1 for pgsql-bugs@postgresql.org; Tue, 20 Dec 2016 13:51:21 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJKp4-0002We-VB for pgsql-bugs@postgresql.org; Tue, 20 Dec 2016 13:51:20 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 83D605F79C; Tue, 20 Dec 2016 08:50:18 -0500 (EST) Date: Tue, 20 Dec 2016 08:50:18 -0500 From: Stephen Frost To: Kaijiang Chen Cc: Mark Kirkwood , Jeff Janes , Oleksandr Shulgin , Pg Bugs Subject: Re: pg_dump's results have quite different size Message-ID: <20161220135018.GY18360@tamriel.snowman.net> References: <3b9af4ce-edba-0006-43a0-31ce6d7624f5@catalyst.net.nz> <543408b3-6724-3c13-16a2-4239aee99cd0@catalyst.net.nz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="abYdCjSRCBwcb+dP" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 08:48:35 up 164 days, 15:12, 34 users, load average: 0.11, 0.13, 0.14 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --abYdCjSRCBwcb+dP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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). >=20 > Thank you all! >=20 > 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 --abYdCjSRCBwcb+dP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYWTcaAAoJEO1sijiDR2RVfJIP/0spoXRP6cH9GE2D1ak+tIKA c65zSXfxvDq5ESwxbxOnr3dVTo8u3M/gMBpG+jcF6atSQ1QgemgxxUpKHwi5hfuk eZ5llj9mOaSz2r8eKWgaL5/GlsQcJKrMrLJNkA+EiN8l1LvKVZKlV7GDwfIn/Ipb JYIkAKbzvsm3yVDMDIPWI4TrM3plPllIe462RXw+1gaHcOPGdC6+4JxzeUo/cxsw iixlZD164+l9hhgW2eErTbi+V7ngm9RJ3wmfQynqXPWzuFNDT15VOSmCsKgz6Y5r Sip1Xw2c8bKNlqdG5StTNZwysCc77C+cTGQ72ltjlU4wEEyGbstM/Tjcm5e55eZ5 ELTbh/S46sB0KuwPCTWGR5FLuE4v1ZlaKZLEYC64tpweVkDw2LlVdOfS2Y+JlRkj pAG0a2gqFAhL5f25ZWTKqKqmz86eyNQxAWYNj6ghyCmJf5YtMQ44FqOn3kawo7up XLdDpLcaoJyNETW+1YEIeIdPeJSBCUreP3zvheC4Ap/QYFdOSZcYAlE161uKBrFR DK3SbxLJXX6q7cDhIOGd4EoBHbleJTZ7E9oILmU/Ljdt/KH+YIgIjhGPD1Y7xUqL Ex6Ar1/+em6Q1pTB3gfOGCCYUrFWlbzhVwBRJ2oG/vPmfY3MsNH3CpilwmoZS7x0 lbMdpEpkd3HcC7bLjCel =gqGl -----END PGP SIGNATURE----- --abYdCjSRCBwcb+dP--