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 1jt1ug-0001mG-0R for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jul 2020 04:42:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jt1ud-0004CJ-BD for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jul 2020 04:42:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jt1ud-0004CC-3l for pgsql-hackers@lists.postgresql.org; Wed, 08 Jul 2020 04:42:27 +0000 Received: from courriel-2.mines-paristech.fr ([77.158.173.19] helo=antispam-1.ensmp.fr) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jt1uV-0002Wa-W8 for pgsql-hackers@postgresql.org; Wed, 08 Jul 2020 04:42:25 +0000 Received: from smtp-5.mines-paristech.fr (smtp.mines-paristech.fr [77.158.173.146]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by antispam-1.ensmp.fr (antispam.mines-paristech.fr) with ESMTPS id 40BF855DC5; Wed, 8 Jul 2020 06:42:16 +0200 (CEST) Received: from pseudo (153.237.219.88.rev.sfr.net [88.219.237.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-5.mines-paristech.fr (Postfix) with ESMTPSA id E9D502025D; Wed, 8 Jul 2020 06:42:15 +0200 (CEST) Date: Wed, 8 Jul 2020 06:42:14 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@pseudo To: Peter Eisentraut cc: pgsql-hackers Subject: Re: some more pg_dump refactoring In-Reply-To: Message-ID: References: <6594334b-40fd-14f1-6bc5-877afa3feed5@2ndquadrant.com> <458c97a0-1841-88c9-eddf-a45a8ba86811@2ndquadrant.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-CLAMAV-SCAN: ok X-VRSPAM-SCORE: -100 X-VRSPAM-STATE: legit X-VRSPAM-CAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrudeigdekkecutefuodetggdotefrucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffujgfkfhgfgggtsehttdertddtredvnecuhfhrohhmpefhrggsihgvnhcuvefqgffnjffquceotghovghlhhhosegtrhhirdgvnhhsmhhprdhfrheqnecuggftrfgrthhtvghrnhepveefgfeuhfegfeffueeljeefjeevgfffleevleekgfduieeftdfgudffledvjeeinecukfhppeekkedrvdduledrvdefjedrudehfeenucfrrghrrghmpehmohguvgepshhmthhpohhuth X-VRSPAM-EXTCAUSE: mhhouggvpehsmhhtphhouhht List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hallo Peter, >>>> Would it make sense to accumulate in the other direction, older to newer, >>>> so that new attributes are added at the end of the select? >>> I think that could make sense, but the current style was introduced by >>> daa9fe8a5264a3f192efa5ddee8fb011ad9da365. Should we revise that? >> It seems to me more logical to do it while you're at it, but you are the >> one writing the patches:-) > > What do you think about this patch to reorganize the existing code from that > old commit? I think it is a definite further improvement. Patch applies cleanly, compiles, global & pg_dump tap test ok, looks ok to me. -- Fabien.