Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYHgV-0000bG-As for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Jan 2017 19:32:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cYHgU-0000RC-Mz for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Jan 2017 19:32:14 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cYHgS-0000QE-Nh for pgsql-hackers@postgresql.org; Mon, 30 Jan 2017 19:32:12 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYHgP-00084v-Fz for pgsql-hackers@postgresql.org; Mon, 30 Jan 2017 19:32:11 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 2E6905F794; Mon, 30 Jan 2017 14:31:08 -0500 (EST) Date: Mon, 30 Jan 2017 14:31:08 -0500 From: Stephen Frost To: Alvaro Herrera Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: test_pg_dump TAP test whitespace cleanup Message-ID: <20170130193108.GJ9812@tamriel.snowman.net> References: <20170130170742.GG9812@tamriel.snowman.net> <20170130181058.d55n4p3kgdk474x2@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5D5aoW68kaHQRK0K" Content-Disposition: inline In-Reply-To: <20170130181058.d55n4p3kgdk474x2@alvherre.pgsql> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 14:22:23 up 205 days, 20:46, 4 users, load average: 0.12, 0.10, 0.12 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -5.1 (-----) 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 --5D5aoW68kaHQRK0K Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Alvaro Herrera (alvherre@2ndquadrant.com) wrote: > Stephen Frost wrote: > > * Alvaro Herrera (alvherre@2ndquadrant.com) wrote: >=20 > > > This will be undone by the next perltidy run. > >=20 > > Ugh. > >=20 > > I certainly hope what was there before wasn't the result of a perltidy > > run as it was quite ugly and inconsistent.. >=20 > Maybe it was. I checked the diff after running perltidy after your > commit and there are some changes that look like a reversion of your > changes, but I don't know if there are other changes. Yeah, I took a look at what perltidy is doing and at least some of that was stuff I went through and fixed. The changes to the %tests structure are pretty reasonable and it looks like it's going to preserve at least some of what I did there because it doesn't (always, at least) re-combine lines that have been split. Unfortunately, what's it's doing to the %pgdump_runs structure are rather annoying because it wants to turn something like: - column_inserts =3D> { - dump_cmd =3D> [ - 'pg_dump', - '-f', "$tempdir/column_inserts.sql", - '-a', - '--column-inserts', - 'postgres', - ], }, into: + column_inserts =3D> { + dump_cmd =3D> [ + 'pg_dump', '-f', + "$tempdir/column_inserts.sql", '-a', + '--column-inserts', 'postgres', + ], + }, I don't mind the change in indentation, of course, but obviously it's a lot nicer when the '-f $tempdir/column_insert.sql' is all on the same line since that's clearly a flag with an argument. I could change all of those to be long versions, eg "--file=3Dblah", to keep them together. Not really ideal, but I'm not really worried that getopt() is going to break either. Unless anyone has a better idea, I'll see about doing that, and then run perltidy of it to clean it up. Thanks! Stephen --5D5aoW68kaHQRK0K Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYj5R7AAoJEO1sijiDR2RVifMP/24qXt3ZEZZqngG4rMh0I9Ar 2bxzVT8cWDnhfPdSmFOgbLD9bLR5/FCUQExtnpVdCdKp7RHucGvKMYsCXokLIrID doNOnGBiSMvB5FP6g11GjUk3WX7x+istHKFsylzAW/73gZWk4EYjQih/h2qY91En ax64Qvfyj4l/o515uMr7PkxAGoC2zgFGzAf5ZTHPCwy/qaKB6MOquM/WSS1cTbyW SB7NJbaGFt2cMlYxVw5AgAobmw6M+RVJf3/HLiAFX/wlmJe4RfoLjH9CWPvPW0kA ZiamIs5uJ/yuTcWOuKrT8B/qbcxB0Vm40XS7e52sybcoOfHKMPs9CjO19YUii7/u kG1zqj9HGKS1Yq3yZK0qlqu7SIeQ0IY3SO4EhNmzjyed2YJrnVg4ChGjqLEOlVop QFP8DrNrv3tIYJBPPgkFe/TQtFaRFyZbK3uk560YFcLQ8BGxY1+h3mOSsxqtWJAZ X0N8XCyJG1EOGrHT+2Xx1aZmkxMSbmiLKFf9e5EdZdSaQ97fimZ5lUuVIa6n/DP+ yAL1b0G7Z37QlahnXhN/ge7guqJbYf5yh3KgjQjUrAez7Lb8UaIjKSs2Fh1Sqg5P SSZAtogkqhgh01RLZJtNx0+cVnLF6aaZDPXQ1fUF5oqCM9h+Z7x5Mc3bvvLFLiTR H2xcShbTWXpsKsffHMYj =n6ZN -----END PGP SIGNATURE----- --5D5aoW68kaHQRK0K--