Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cI11W-0007Ps-LS for pgsql-bugs@arkaria.postgresql.org; Fri, 16 Dec 2016 22:30:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cI11V-0000BD-7i for pgsql-bugs@arkaria.postgresql.org; Fri, 16 Dec 2016 22:30:41 +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 1cI11U-00006I-54 for pgsql-bugs@postgresql.org; Fri, 16 Dec 2016 22:30:40 +0000 Received: from cat-porwal-prod-mail1.catalyst.net.nz ([2404:130:4080::4]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cI11P-00062b-81 for pgsql-bugs@postgresql.org; Fri, 16 Dec 2016 22:30:38 +0000 Received: from localhost (localhost [127.0.0.1]) by cat-porwal-prod-mail1.catalyst.net.nz (Postfix) with ESMTP id 1BDB18061E; Sat, 17 Dec 2016 11:30:33 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at cat-porwal-prod-mail1.servers.catalyst.net.nz Received: from cat-porwal-prod-mail1.catalyst.net.nz ([127.0.0.1]) by localhost (cat-porwal-prod-mail1.servers.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v77js93VSTZG; Sat, 17 Dec 2016 11:30:32 +1300 (NZDT) Received: from [192.168.1.64] (122-62-66-159.jetstream.xtra.co.nz [122.62.66.159]) (Authenticated sender: mark.kirkwood@catalyst.net.nz) by cat-porwal-prod-mail1.catalyst.net.nz (Postfix) with ESMTPSA id B125980456; Sat, 17 Dec 2016 11:30:31 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catalyst.net.nz; s=catalyst; t=1481927432; bh=vytU/N2QJ78EB720Sp3r4dWSNvG4Kj9ThHaK6L9QuVA=; h=Subject:To:References:Cc:From:Date:In-Reply-To; b=LVxBa4R7rJ47i+CArSN44nesFTxTclBD54M7tX7F6/Mmn0Nh6qBmZxFrWTatUOC77 3MEI/Sd3sOVbGPBQ6uGL7CtZv8/ERF4TLiu4xlw04qlH1+iJVMBvAsqR9Is3Zn4Uo4 ZVbHxObhtIaAZQaXrbfmIGPJkSmk1dVygLdHp1eQ= Subject: Re: pg_dump's results have quite different size To: Jeff Janes References: <3b9af4ce-edba-0006-43a0-31ce6d7624f5@catalyst.net.nz> Cc: Oleksandr Shulgin , Kaijiang Chen , Pg Bugs From: Mark Kirkwood Message-ID: <543408b3-6724-3c13-16a2-4239aee99cd0@catalyst.net.nz> Date: Sat, 17 Dec 2016 11:30:31 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -5.1 (-----) 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 On 17/12/16 09:47, Jeff Janes wrote: > On Thu, Dec 15, 2016 at 11:18 PM, Mark Kirkwood > > > wrote: > > On 14/12/16 22:09, Oleksandr Shulgin wrote: > > On Wed, Dec 14, 2016 at 9:29 AM, Kaijiang Chen > > >> wrote: > > Yes. The pg_dump quits with the message: > > pg_dump: Dumping the contents of table "data_histories" > failed: > PQgetResult() failed. > pg_dump: Error message from server: ERROR: canceling statement > due to conflict with recovery > DETAIL: User query might have needed to see row versions that > must be removed. > pg_dump: The command was: COPY public.data_histories (id, > user_id, > user_name, type, type_id, old_data, action, new_data, > created_at, > updated_at) TO stdout; > > > Ah, then it's just that your backup script is broken: it > should have reported the error. > > Please do not top-post. > > > Oleksandr - how about a helpful response? E.g suggesting that > maybe increasing max_standby_streaming_delay might help? Goddamn! > folk asking for help deserve better than just being told 'it is > broken dickhead'... > > > The problem *is* that his backups are broken without him knowing it. > Maybe increasing max_standby_streaming_delay is an answer, but maybe > he would rather have occasional broken backups *which he knows about* > then suffer the consequences of an increased > max_standby_streaming_delay. Maybe hot_standby_feedback would be a > better option, or maybe vacuum_defer_cleanup_age (but that is less > likely). > > The only thing we actually know with reasonable certainty is that his > backup script is broken, and that this is bad. Randomly changing > settings so that the brokenness is still there but just less obvious > is more dangerous than helpful. > It seems we know quite a lot more, evidenced by the error above. It also seems clear that he wants his backups to work, not just report errors surely? That the script should check return codes better (or at all) sure, that seems to have been emphasized quite sufficiently. regards Mark -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs