Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oXpmx-000151-Nr for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Sep 2022 20:12:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oXpmw-00036v-Lo for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Sep 2022 20:12:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oXpmv-00036j-Pw for pgsql-hackers@lists.postgresql.org; Mon, 12 Sep 2022 20:12:14 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oXpms-00034d-D5 for pgsql-hackers@lists.postgresql.org; Mon, 12 Sep 2022 20:12:12 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id ABC5A3200994; Mon, 12 Sep 2022 16:12:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 12 Sep 2022 16:12:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1663013526; x=1663099926; bh=OY28sPYYtR UC+WBz2HtmNhal+Tn7vSftTAgAL1fQ4zU=; b=55bgTCWTwr1ugPW5V0dKlLkwZA pduY01SlZ5zxIoUu7i+sp3wmqSjmghmivoWIiMBWjC2af/mqqZP9qsHZaCRqgyda 50wAAaUuYkYkMU8FqeBSUg+zqDPNvVYxZ7JWApPX1OPAIudYwOrMId3YYyn+fe7N xPYUmdm3XDbg9hNwMT5iF9TcX+A3Nmy9R/6/JRDuJtto/JFXHkmVowPrG/hxa8xJ Mv4/bR0HvitoxBmlbzljbkL/YyiHH8ycyMV9LvKicOopbsJmUxwg2tbxQYYiQcq7 Osrj/DEsHZOT+QiFMdLoPRGQEWVFA2cH3YNUkBAHc58rfx/PSiWDTok1xwNw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1663013526; x=1663099926; bh=OY28sPYYtRUC+WBz2HtmNhal+Tn7 vSftTAgAL1fQ4zU=; b=PYW/LRiTSPocM68X9E7J/gCvrBoWjdD4bCHbYUCZzxtq pQbHqTFe5A2S2QELod8MSHBLhwUc2wUNK5AjLd++JxEZFgLgRdOudox/KyRaj5zJ +Y2YQhaKyAwYVj38hzd2Rn7P30vgNttAh0Z099QP9x2P5cyTsoJC3W0h9JI1Da0j i65OFmdJRW+YVECpzXotlf3nBmv/F6y9xkyeMPrYQ9AciaDPPjVb0mgcsC+ts9eE jSxTcS8H2SCqWzx+/1CmgRK9Rl7Q0i8p3xEJFSQJ2G/yyjAiBjTTIlQwGP4oe7Zt HixMKZjpc0a0T19OpHvwIpH7F7dYsFNH0iCnM4ZEkg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeduvddgudeglecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufhfffgjkfgfgggtsehttdertddtreejnecuhfhrohhmpeffrghg fhhinhhnpgfklhhmrghrihgpofgrnhhnshonkhgvrhcuoehilhhmrghrihesihhlmhgrrh hirdhorhhgqeenucggtffrrghtthgvrhhnpeeghefhhffgfeetffegudeivdeuteetgfel ffdvheffudekudetjeeihfefgedvleenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehilhhmrghrihesihhlmhgrrhhirdhorhhg X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 12 Sep 2022 16:12:05 -0400 (EDT) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Tom Lane Cc: Andres Freund , Michael Paquier , pgsql-hackers@lists.postgresql.org Subject: Re: Splitting up guc.c References: <587607.1662836699@sss.pgh.pa.us> <666417.1662862120@sss.pgh.pa.us> <925946.1662918775@sss.pgh.pa.us> <1305798.1662935501@sss.pgh.pa.us> <20220912193928.wgrccx4b4k3solpu@awork3.anarazel.de> <1771845.1663011970@sss.pgh.pa.us> Date: Mon, 12 Sep 2022 21:12:03 +0100 In-Reply-To: <1771845.1663011970@sss.pgh.pa.us> (Tom Lane's message of "Mon, 12 Sep 2022 15:46:10 -0400") Message-ID: <87v8psl5d8.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tom Lane writes: >> I think this is localized enough that asking people to manually resolve a >> conflict around adding a GUC entry wouldn't be asking for that much. And I >> think plenty changes might be automatically resolvable, despite the rename. > > I wonder whether git will be able to figure out that this is mostly a > code move. I would expect so for a straight file rename, but will that > work when we're splitting the file 3 ways? Git can detect more complicated code movement (see the `--color-moved` option to `git diff`), but I'm not sure it's clever enough to realise that a change modifying a block of code that was moved in the meanwhile should be applied at the new destination. > regards, tom lane - ilmari