Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyz2U-0007oz-6T for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Apr 2017 11:05:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cyz2T-0001lK-Pp for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Apr 2017 11:05:17 +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 1cyz0z-0007VE-NA for pgsql-hackers@postgresql.org; Fri, 14 Apr 2017 11:03:45 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyz0v-0004lB-LL for pgsql-hackers@postgresql.org; Fri, 14 Apr 2017 11:03:45 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id AB6045F794; Fri, 14 Apr 2017 07:03:09 -0400 (EDT) Date: Fri, 14 Apr 2017 07:03:09 -0400 From: Stephen Frost To: Michael Paquier Cc: Craig Ringer , Noah Misch , PostgreSQL mailing lists Subject: Re: Rewriting the test of pg_upgrade as a TAP test Message-ID: <20170414110309.GV9812@tamriel.snowman.net> References: <20170403151237.GK9812@tamriel.snowman.net> <20170404123011.GX9812@tamriel.snowman.net> <20170405132426.GW9812@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jCWkHzhWrg6TRiVy" Content-Disposition: inline In-Reply-To: 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: 07:01:57 up 279 days, 12:26, 34 users, load average: 0.33, 0.17, 0.14 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) 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 --jCWkHzhWrg6TRiVy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Michael, * Michael Paquier (michael.paquier@gmail.com) wrote: > On Thu, Apr 6, 2017 at 7:48 AM, Michael Paquier > wrote: > > On Wed, Apr 5, 2017 at 10:24 PM, Stephen Frost wro= te: > >> * Michael Paquier (michael.paquier@gmail.com) wrote: > >>> 1) Initialize the old cluster and start it. > >>> 2) create a bunch of databases with full range of ascii characters. > >>> 3) Run regression tests. > >>> 4) Take dump on old cluster. > >>> 4) Stop the old cluster. > >>> 5) Initialize the new cluster. > >>> 6) Run pg_upgrade. > >>> 7) Start new cluster. > >>> 8) Take dump from it. > >>> 9) Run deletion script (Oops forgot this part!) > >> > >> Presumably the check to match the old dump against the new one is also > >> performed? > > > > Yes. That's run with command_ok() at the end. >=20 > Attached is an updated patch to use --no-sync with pg_dumpall calls. Some of those were specifically left around to test those code paths. I'm not sure if these were those or not though, Andrew was the one who reviewed the various pg_dumpall calls to add --no-sync in places. Thanks! Stephen --jCWkHzhWrg6TRiVy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJY8KxtAAoJEO1sijiDR2RVptQP/2V4wR3vl7BwQV4UY6anAq22 fs5M0Wv4R4Kq+Vsm3Pzl113b5du7Dxjf6Ezwq1Bwcl0r2hyuWdR7GaPp5PwchC87 70PRWzfQ+rTX7venhIJdRyhNGNzd9TW5XWOCr6MokYAthL4c9Fc0wZKzUglbGrK/ 0rinrMsxN/Pgb1Cb9QFUvegJXlLWzV7ooG9C3MCJno4NlGb4wu954gsojU+amTXO 6n53Ym5pm4GEMzZPwBbDlEjtXtM01ix9hPDsnEYdFbsLfb0NM5YflzBblBO7IZwC 1K/BL/tE1KdSgFET4ftE2x4l3Cr/4qRz41byaiyZ8aVdGRwX85QiU6TJFxko7jQF I4l//9Ck5NoDi0okXp/GXtteOa31DcDtb6+wTGKnx/u/GOxE8Jtn/N4OasQrg99x HXfKNYRHE7cEnA5MvgZvtduBFdZ9Ia2hSihdqOlJ3bXf0wtXSz4HY5OfDTPZCdAA VKPhxdfPfjDjbV20yLHi/INL1eerpXwuCXMKHpfw6/++e2OCxUaWL9ObRdYDouBD IMlNFqvUPCkQSWBezUGkUSFw+Z5FUGKYTUQFyl4B3IvQPfPzydDTKbCPinIs75Tj TtzdqaKvIyJ4zH08I2rrEUlfQdrToVlI4VDzsPrWvnUFKq2kVv+9ovNwY4NgmfN2 6+Q9prxe1j2EXKfrL6zz =DFM0 -----END PGP SIGNATURE----- --jCWkHzhWrg6TRiVy--