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 1oWIFJ-0001pq-Fa for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Sep 2022 14:11:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oWIFI-0007NJ-Aj for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Sep 2022 14:11:08 +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 1oWIFI-0007NA-1N for pgsql-hackers@lists.postgresql.org; Thu, 08 Sep 2022 14:11:08 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWIFD-0004nw-GL for pgsql-hackers@lists.postgresql.org; Thu, 08 Sep 2022 14:11:07 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 558613200984; Thu, 8 Sep 2022 10:10:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 08 Sep 2022 10:10:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version: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=1662646257; x=1662732657; bh=V mS1b1aC6uh5g1u6sTQG+l1vIJz8YCTjGpIZy1jJiqQ=; b=AiUJyCfyl2q5yr4ry Ht/IA6Hm+qhGYGqIc2LPLctHexbecCZ00+8cKc3rSOZw/8EdKrYSusTHggkv3y3h 3WxF65tXA9CsKsQSjH3rHHvKZ1vKTRubxkG2CfupDjwHLWVrPe+YfRaD7cz+kgeD Q8pNT9PlvJYrmiR/EhyQkVlXBrp5oqgH6CKqRuM7j+4f0uOLpLdmKN9ftUzcLPI+ BevVNzCBNnKmzZY4O35LrClX+EBD5Se/c+TFWYIk41Raz64eK35purHDnyodZShL bOTJnhKAbxdCvbvcHLxcDxVQ2a9AK2vtnj5SKWX2JbhwhunzuabhUVoQdlyqqD6J 8jXdA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedtfedgudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 8 Sep 2022 10:10:57 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 9DFA2387; Thu, 8 Sep 2022 16:10:54 +0200 (CEST) Date: Thu, 8 Sep 2022 16:10:54 +0200 From: Alvaro Herrera To: Justin Pryzby Cc: Dmitry Koval , pgsql-hackers@lists.postgresql.org Subject: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands Message-ID: <20220908141054.gztopgephposxzd6@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220908122604.GE31833@telsasoft.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Sep-08, Justin Pryzby wrote: > If the patch were split into separate parts for MERGE and SPLIT, would > the first patch be significantly smaller than the existing patch > (hopefully half as big) ? That would help to review it, even if both > halves were ultimately squished together. (An easy way to do this is to > open up all the files in separate editor instances, trim out the parts > that aren't needed for the first patch, save the files but don't quit > the editors, test compilation and regression tests, then git commit > --amend -a. Then in each editor, "undo" all the trimmed changes, save, > and git commit -a). An easier (IMO) way to do that is to use "git gui" or even "git add -p", which allow you to selectively add changed lines/hunks to the index. You add a few, commit, then add the rest, commit again. With "git add -p" you can even edit individual hunks in an editor in case you have a mix of both wanted and unwanted in a single hunk (after "s"plitting, of course), which turns out to be easier than it sounds. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "El sudor es la mejor cura para un pensamiento enfermo" (Bardia)