Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1afWbD-0007Jh-Kk for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2016 17:48:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1afWbC-0005Xy-T4 for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2016 17:48:10 +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_2) (envelope-from ) id 1afWZr-0003b5-SV for pgsql-hackers@postgresql.org; Mon, 14 Mar 2016 17:46:47 +0000 Received: from linode.thelabyrinth.net ([198.58.117.137] helo=mail.thelabyrinth.net) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1afWZo-0007J0-55 for pgsql-hackers@postgresql.org; Mon, 14 Mar 2016 17:46:47 +0000 Received: from [192.168.1.103] (wsip-184-178-50-4.dc.dc.cox.net [184.178.50.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteelepg) by mail.thelabyrinth.net (Postfix) with ESMTPSA id 5122812D13; Mon, 14 Mar 2016 17:46:41 +0000 (UTC) Subject: Re: BUG #13685: Archiving while idle every archive_timeout with wal_level hot_standby To: Michael Paquier , Robert Haas References: <20160204131003.h7obwkeaellkcewb@alap3.anarazel.de> <20160206174930.GA21471@awork2.anarazel.de> <20160208091852.6xikp5lxkqitdon3@alap3.anarazel.de> <20160212175635.6zledt7gvww24wfj@alap3.anarazel.de> Cc: Andres Freund , Amit Kapila , Jeff Janes , "pgsql-hackers@postgresql.org" From: David Steele Message-ID: <56E6F900.1090809@pgmasters.net> Date: Mon, 14 Mar 2016 13:46:40 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) 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 2/24/16 12:40 AM, Michael Paquier wrote: > This has the merit to be clear, thanks for the input. Whatever the > approach taken at the end we have two candidates: > - Extend XLogInsert() with an extra argument for flags (Andres) > - Introduce XLogInsertExtended with this extra argument and let > XLogInsert() in peace (Robert and I). > Actually, I lied, there was still something I could do for this > thread: attached are two patches implementing both approaches as > respectively a-1 and a-2. Patch b is the set of logs I used for the > tests to show with a low checkpoint_timeout that checkpoints are > getting correctly skipped on an idle system. Unfortunately neither A nor B apply anymore. However, since the patches can still be read through I wonder if Robert or Andres would care to opine on whether A or B is better now that they can see the full implementation? For my 2c I'm happy with XLogInsertExtended() since it seems to be a rare use case where flags are required. This can always be refactored in the future if/when the use of flags spreads. I think it would be good to make a decision on this before asking Michael to rebase. Thanks, -- -David david@pgmasters.net -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers