Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYgcw-0005f2-Qy for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Jan 2017 22:10:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cYgcw-0002HO-Dp for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Jan 2017 22:10:14 +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 1cYgcv-0002GI-3n for pgsql-hackers@postgresql.org; Tue, 31 Jan 2017 22:10:13 +0000 Received: from mail-qk0-x22b.google.com ([2607:f8b0:400d:c09::22b]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cYgcr-0003om-Ps for pgsql-hackers@postgresql.org; Tue, 31 Jan 2017 22:10:12 +0000 Received: by mail-qk0-x22b.google.com with SMTP id 11so179877270qkl.3 for ; Tue, 31 Jan 2017 14:10:09 -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=C2SjNN/KDlHkI6OFvHzDVT74ylXt7XEk2DGcvGfLQJc=; b=DJrdsSd4rtfQlDjUodo9tzkF5ydRZmJ9PmV6nl1ppq9Fsy57L4jddKU7j2rVyQ2nfT BiCQ8CWU+DRC+CO4xwxz7usV9oK7N2hyyJYMzIWX0PNtqiBT8hhvtBzV0qf+QdFQPCZs ohzbDIqV2DTp/HhdDPgBmbYbnPRnubFce06/8k8ivLqoJjjHNJVv6a/UuUKhznGc5Dfy MQXmRya0JtIyj6UHlbi/VrySOizIx+hp7RQWImgECohb4zi9kKiszXUeD9smZ6qllv7x LVaqvjWQGFi2P7JkXKzwruo91awT1JZ7GdEcMmj5UynK15g0rVA1wSizhMKJwHePuBAL 5agQ== 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=C2SjNN/KDlHkI6OFvHzDVT74ylXt7XEk2DGcvGfLQJc=; b=IXbBxX8B6THNMU6lMJgzxLdzEa48xoES+GsY7SuSjJV4zuciItrG44/qSDw5czXBoj VEmd+k14fDeauwef/TkQJW3IKilw3qec7aiTGYDQwCfzaJeGYifwFDhxlACc5VJmMjPY zgSdUrOFdlJpYuOWw4wgYqjjpQu7BP6WgdWsv7BY7alWC1UzqoI5Fhca5LU9DL5eGprc XTCPBzIhJU7mZYxJWJHaDDD+Wr2ugsrs40Rr4bQQu/LcWGtF7h/HqgtRqNWOTre4Oo/E 3J0bQZJzGllzzCQpXFFjs2mVOecuW/AHyGCSwEK4CYIfgvl9/wwCU1TZSWlTT8XxIqbU Zmow== X-Gm-Message-State: AIkVDXI3HROrP0BVMPT2BJp9OlVBan0WtAvULvhqKWIVqfqBwF40buzMcC78uP9EZhX6Bu6e X-Received: by 10.55.74.134 with SMTP id x128mr27537461qka.120.1485900608305; Tue, 31 Jan 2017 14:10:08 -0800 (PST) Received: from alvin.alvh.no-ip.org ([179.57.112.237]) by smtp.gmail.com with ESMTPSA id g32sm16662090qtd.28.2017.01.31.14.10.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jan 2017 14:10:07 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id CB410662; Tue, 31 Jan 2017 19:10:05 -0300 (CLST) Date: Tue, 31 Jan 2017 19:10:05 -0300 From: Alvaro Herrera To: Andres Freund Cc: Pavan Deolasee , Jaime Casanova , Haribabu Kommi , Tomas Vondra , pgsql-hackers Subject: Re: Patch: Write Amplification Reduction Method (WARM) Message-ID: <20170131221005.24lqwbdqg3dpvmeq@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170131215538.5c65rexachourokl@alap3.anarazel.de> 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 Andres Freund wrote: > On 2017-01-31 14:10:01 -0300, Alvaro Herrera wrote: > > Hmm, I was thinking we would get rid of CatalogUpdateIndexes altogether. > > Two of the callers are in the new routines (which I propose to rename to > > CatalogTupleInsert and CatalogTupleUpdate); the only remaining one is in > > InsertPgAttributeTuple. I propose that we inline the three lines into > > all those places and just remove CatalogUpdateIndexes. Half the out-of- > > core places that are using this function will be broken as soon as WARM > > lands anyway. I see no reason to keep it. (I have already modified the > > patch this way -- no need to resend). > > > > Unless there are objections I will push this later this afternoon. > > Hm, sorry for missing this earlier. I think CatalogUpdateIndexes() is > fairly widely used in extensions - it seems like a pretty harsh change > to not leave some backward compatibility layer in place. Yeah, I can put it back if there's pushback about the removal, but I think it's going to break due to WARM anyway. -- Á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