Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ztdjt-0000Ag-Bb for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Nov 2015 15:43:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Ztdjs-0006Ul-Ue for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Nov 2015 15:43:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Ztdjs-0006Ue-Ed for pgsql-hackers@postgresql.org; Tue, 03 Nov 2015 15:43:12 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Ztdjo-0000nG-74 for pgsql-hackers@postgresql.org; Tue, 03 Nov 2015 15:43:10 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 857CC860001; Tue, 3 Nov 2015 16:43:07 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC58CC.dip0.t-ipconnect.de [93.220.88.204]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id EA8CE860002; Tue, 3 Nov 2015 16:43:00 +0100 (CET) Received: by anarazel.de (Postfix, from userid 1000) id 81FF51008A4; Tue, 3 Nov 2015 16:43:00 +0100 (CET) Date: Tue, 3 Nov 2015 16:43:00 +0100 From: Andres Freund To: Robert Haas Cc: Jeff Janes , "pgsql-hackers@postgresql.org" Subject: Re: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby Message-ID: <20151103154300.GY11897@awork2.anarazel.de> References: <20151016203031.3019.72930@wrigleys.postgresql.org> <20151102055841.2561.61366.pgcf@coridan.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2015-11-03 10:23:35 -0500, Robert Haas wrote: > On Mon, Nov 2, 2015 at 12:58 AM, Jeff Janes wrote: > > If a transaction holding locks aborts on an otherwise idle server, perhaps it will take a very long time for a log-shipping standby to realize this. But I have hard time believing that anyone who cares about that would be using log-shipping (rather than streaming) anyway. > > I'm sure other people here understand this better than me, but I > wonder if it wouldn't make more sense to somehow log this data only if > something material has changed in the data being logged. Phew. That doesn't seem easy to measure. I'm doubtful that it's worth comparing the snapshot and such, especially in the back branches. We could maybe add something that we only log a snapshot if XXX megabytes have been logged or something. But I don't know which number to pick here - and if there's other write activity the price of a snapshot record really isn't high. Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers