Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX9NN-0003YV-LS for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Jul 2017 17:00:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dX9NN-0004fg-8G for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Jul 2017 17:00:05 +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 1dX9NF-0004TX-2Y for pgsql-hackers@postgreSQL.org; Mon, 17 Jul 2017 16:59:57 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dX9N7-0004YW-TW for pgsql-hackers@postgreSQL.org; Mon, 17 Jul 2017 16:59:53 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id AD5B05F795; Mon, 17 Jul 2017 12:59:48 -0400 (EDT) Date: Mon, 17 Jul 2017 12:59:48 -0400 From: Stephen Frost To: Tom Lane Cc: pgsql-hackers@postgreSQL.org Subject: Re: Why have we got both largeobject and large_object test files? Message-ID: <20170717165948.GA1769@tamriel.snowman.net> References: <18665.1500306372@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PvoHO/wKF8wd+Wc7" Content-Disposition: inline In-Reply-To: <18665.1500306372@sss.pgh.pa.us> User-Agent: Mutt/1.5.21 (2010-09-15) 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 --PvoHO/wKF8wd+Wc7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Tom, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > I happened to notice that the regression tests contain both > largeobject.sql and large_object.sql. This seems at best confusing and at > worst a source of mistakes. The second file was added in March by commit > ff992c074, has never been touched by any other commit, and is only 8 lines > long. Was there a really good reason not to incorporate that test into > largeobject.sql? Just to be clear that we're talking about the same thing- there is no 'largeobject.sql' in a clean source tree. There is a 'largeobject.source' in src/test/regress/input which is converted to largeobject.sql. As for the general question of if the two could be merged, I can't think of any reason off-hand why that wouldn't work, nor do I have any particular recollection as to why I created a new file instead of using the existing. My shell history tells me that I found largeobject.source while crafting the test case but not why I didn't use it. The main thing is that the large_object.sql was specifically added to test pg_upgrade/pg_dump, so the created object needs to be kept around in the regression database with the comment after the tests run for that to happen. Thanks! Stephen --PvoHO/wKF8wd+Wc7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIbBAEBCgAGBQJZbO0EAAoJEO1sijiDR2RVVB0P9jMu7bN27Pqf+rTyhlUEk5wW +uIQaQqSNJTJpAraQLS+q9/ooHPhj+xNiNTyi9pQZ6xL0i1dQ4Mnih9p+0yyITWX RNzE0L8snGsnO6wG9vID5vD46WsGSWfXhg15dqtw1SF11JOFkmswr6bwy8tIAL4Z JOhgeCtrNNLZPFiS9EHVEfwqcwsDvK53B7qbgS8fbJ+oKYNmrwENIsNyPjyjjg4Y 5RGSTgEdxuTWBTIFlz2JgU4JJEYSlfw1nDyoQF02KNa/XCJ7llQU8jrofUrztQhB 03UxHXJSfLFqRgbZULtkXeJe6W1vaaZ5JzRgooMRhsb6Pm3SUPX+6cZgNBRrWqgW dEGwjmesbPUGInZ68pV5rxy/JAPezmbDW1rEk2yOv3qwIhoJ4hAGZINQwQ3xhvZD xRsvpeNZpe66CALy5qn/Qamj+ikmWZAYahPD0TcZZJUnS/N1gjiGPJ11Ihd2DSC9 p9PmnUDYSz7Ge8WxEPuTmMnKrr/C2tCgVrnkMBIyGqqkOAl2pFyisXCO4N3el1ZR oqDnV0q9/aM/7FYi+2+rxdTnomXaquokZ7va2NGTa2H/h9D9bglEsqrSkm6uQkr+ KY6fRWTaFI4Li4D/zcrhN/PwKdQdmEWLZi3L7KMRAqfwfIluSvr1KeGAOEmuew2R kSVGJSYo2ToFJBVg/Pc= =BJRo -----END PGP SIGNATURE----- --PvoHO/wKF8wd+Wc7--