Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctfnv-0004Ya-5k for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Mar 2017 19:32:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ctfnu-0004kH-Od for pgsql-hackers@arkaria.postgresql.org; Thu, 30 Mar 2017 19:32:18 +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 1ctfmO-0007qb-Al for pgsql-hackers@postgresql.org; Thu, 30 Mar 2017 19:30:44 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctfmK-0003rt-OB for pgsql-hackers@postgresql.org; Thu, 30 Mar 2017 19:30:43 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 717D921C243A; Thu, 30 Mar 2017 22:30:37 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Received: from localhost (unknown [208.123.164.34]) by mail.postgrespro.ru (Postfix) with ESMTPSA id D356221C1B1E; Thu, 30 Mar 2017 22:30:36 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1490902237; bh=WwIt8TTpk1RFDhn34mFfX5c/r5jZYMxz2U9hcAnmwTI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=FzZNbOD4zsccjODCwWBWL9n6c/hQwfkqyp6vg0vG9hQQqd3y+J9cSARGyivVIbhl9 FIJJUF1TSmsU3ku4uESGanWb40rTqw/UD0MTarK7qMuD7JypFeYENIxFuYW7vMWs3t /RASs/sv5k+54A8NValngMOEvNCsvbJZEFoo9OwE= Date: Thu, 30 Mar 2017 22:27:06 +0300 From: Aleksander Alekseev To: Robert Haas Cc: Teodor Sigaev , "pgsql-hackers@postgresql.org" , Anastasia Lubennikova , Peter Geoghegan , David Steele , Peter Eisentraut Subject: Re: WIP: Covering + unique indexes. Message-ID: <20170330192706.GA2565@e733.localdomain> References: <56168952.4010101@postgrespro.ru> <46e1f13e-6887-3851-a525-f046029341eb@postgrespro.ru> <20170324124709.22419.51178.pgcf@coridan.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) X-Pg-Spam-Score: -2.0 (--) 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 --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Robert, > Has anybody done some testing of this patch with the WAL consistency > checker? Like, create some tables with indexes that have INCLUDE > columns, set up a standby, enable consistency checking, pound the > master, and see if the standby bails? I've decided to run such a test. It looks like there is a bug indeed. Steps to reproduce: 0. Apply a patch. 1. Build PostgreSQL using quick-build.sh [1] 2. Install master and replica using install.sh [2] 3. Download test.sql [3] 4. Run: `cat test.sql | psql` 5. In replica's logfile: ``` FATAL: inconsistent page found, rel 1663/16384/16396, forknum 0, blkno 1 ``` > Has anybody tested this patch with amcheck? Does it break amcheck? Amcheck doesn't complain. [1] https://github.com/afiskon/pgscripts/blob/master/quick-build.sh [2] https://github.com/afiskon/pgscripts/blob/master/install.sh [3] http://afiskon.ru/s/88/93c544e6cf_test.sql --=20 Best regards, Aleksander Alekseev --UugvWAfsgieZRqgk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEECAokn0QZCoIHW4GpEEnCBLXCDtYFAljdXAQACgkQEEnCBLXC DtaY8BAAkJTTfTLqWIsuAk7IMCe8ocu58ItjNn0JL5lUG05MRKbzmPAW+Co7Amxn R2TbK0KWaZOG8xpUOiGyCw8gjzUGBOAuvbNrYoIIJSSLm6ybWkfyLFHEeMEskAyx fEeMhCrGUbDSzDDEfT6rgbIYM6s4SzwWHnj6kUIan9T2UwLiLOWqA+ybB5QITdAD mIiVrjoLwin31Ndjw2vwPlFoI4kgI9sk6Xh2AOZLwpGgx8l3lXNQCj+y2wkKoqiD yE7tlG+AmBZQnI8zWdBEMPQf7fIDJI6lMnk26riA6AuX3cNaIBbDCrYrrklXcS/J Ye1mMo4Zo+cY3zaZ4yBPQJ1csFnHa9NZ+4vMXK1CKBL8hRcUM1lk1EGUk17VWmU4 WqF23wVAmxGANWdHv4ib9TnJKtDGR7tfnLvvdawQOrlzEtjQxQfhlheybviU7TV0 q7smQj9vtmWFsFDtenMHH2GPyAapWG7iR5w95H2j8njM1RG/TYHKH+QS9fUIioCm IENT1TLz3vjMObLHieivdt6RCvN2/9UTMRGLK/EIh3FhalnKcoIEwZfLoMe5IKpL VJ0hd3VMXY1Iq0R9eyWoy5LSGJVLhTHC7sJQdoKsSUpvj5adMttPIPP+m7CIBzoN Dfjbs+2KxCm/bnzwsxHbMVst2uYCUemg2u0Mj6VwM1Kvy2equQk= =w6Wd -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk--