Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYZ6J-0002Ep-Sk for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Jan 2017 14:08: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 1cYZ6J-0007ry-Fs for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Jan 2017 14:08:03 +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 1cYZ6I-0007pU-CY for pgsql-hackers@postgresql.org; Tue, 31 Jan 2017 14:08:02 +0000 Received: from mail-qt0-x232.google.com ([2607:f8b0:400d:c0d::232]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cYZ6F-0002fu-CK for pgsql-hackers@postgresql.org; Tue, 31 Jan 2017 14:08:01 +0000 Received: by mail-qt0-x232.google.com with SMTP id k15so234791676qtg.3 for ; Tue, 31 Jan 2017 06:07:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=I6CVkwZd/lgzGYH6dJdoEfMjUh2IFNVJRzeoWVVVvPY=; b=Tx/hKB3CPIZdwFjaYBN6UHgN9ngPSJqSd+yN4NzMAIBBvMHEjUAvVWLAdnIa5/yyFq xODP30EXB9Py2LaT1ktlvXKda+PPZEtDQoOfS1J8gt/mVF+g7bsix+uDmUobc20CpnDS 3+o2hVG/ZwCK8OiHsFoueK0sSTuddLVm3DZUMGMFv2A082uYGP6P7QT2vrXEE6xXoSWk 8ZNJaG3HSTkUJjsc/HRjaMU3e5XMh8XdzdrfVqNd0cB8jxvx3Zf1Y4zUFkuxEEopVWv1 ytaqjoEcCol/5L/ZnVT3c0FtJn4PhffFQoYOIoIAOXGt1CcokP4DSWbmzZMuz9vNhYSv g5FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=I6CVkwZd/lgzGYH6dJdoEfMjUh2IFNVJRzeoWVVVvPY=; b=KLYVqF7Qad+5RMTtQqoZrDwtWUZBsNui22sdKHPScjQcqvQ4YXgyWW1pU3x9uM1Ir6 7FxyT6+3x6O7LaUnb2K8Wl7pMnqtlu4UEK5Sa7iutr9S3CFoZL4thmeGgX5kXy3UrC/k iUB7a1JKbRGHQKGjF2Jt3keMDfVfQLtFtODVaVHsOGXkqTe+gLVGQa6AoLG6VROkDFdl C3IXHZDoR04WZYElgeHWkqXduN6hcaDTR1s9XTSeWUakrrmqNEMgALM2cfzAwbGgttGU tUuQOjf1NXh//tJjCeg5PlGhPMTHNWfJlTC0RWMgyXDc4ktxpOHVVy+SH8xd6vs7fVz4 Bdrg== X-Gm-Message-State: AIkVDXKtN/aJ8OgyJ09fmQ6Ty5flOE2e5pBKHvWfKiIKXUyKThquVtiKhjR4rcaYtzI9XhSX X-Received: by 10.200.46.147 with SMTP id h19mr24929151qta.259.1485871678588; Tue, 31 Jan 2017 06:07:58 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.217.211.239]) by smtp.gmail.com with ESMTPSA id y23sm15372683qtc.38.2017.01.31.06.07.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jan 2017 06:07:58 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 436E8F20; Tue, 31 Jan 2017 11:07:56 -0300 (CLST) Date: Tue, 31 Jan 2017 11:07:56 -0300 From: Alvaro Herrera To: Pavan Deolasee Cc: Jaime Casanova , Haribabu Kommi , Tomas Vondra , pgsql-hackers Subject: Re: Patch: Write Amplification Reduction Method (WARM) Message-ID: <20170131140756.d6sbkhpsa7jublxc@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-Pg-Spam-Score: -2.6 (--) 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 Pavan Deolasee wrote: > On Tue, Jan 31, 2017 at 7:21 PM, Alvaro Herrera > wrote: > > CatalogUpdateIndexes was just added as a convenience function on top of > > a very common pattern. If we now have a reason to create a second one > > because there are now two very common patterns, it seems reasonable to > > have two functions. I think I would commit the refactoring to create > > these functions ahead of the larger WARM patch, since I think it'd be > > bulky and largely mechanical. (I'm going from this description; didn't > > read your actual code.) > > Sounds good. Should I submit that as a separate patch on current master? Yes, please. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers