Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPu5f-0000b9-K9 for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Aug 2015 15:06:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZPu5f-0004Uq-5V for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Aug 2015 15:06:47 +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) (envelope-from ) id 1ZPu5Y-0004OB-9R for pgsql-hackers@postgresql.org; Thu, 13 Aug 2015 15:06:40 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZPu5U-0007sb-VF for pgsql-hackers@postgresql.org; Thu, 13 Aug 2015 15:06:39 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6D7585F7AE; Thu, 13 Aug 2015 11:06:35 -0400 (EDT) Date: Thu, 13 Aug 2015 11:06:35 -0400 From: Stephen Frost To: Tom Lane Cc: Andrew Dunstan , pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Further fixes for degenerate outer join clauses. Message-ID: <20150813150635.GD3685@tamriel.snowman.net> References: <55CB9BEA.4030103@dunslane.net> <31854.1439433355@sss.pgh.pa.us> <20150813141005.GY3685@tamriel.snowman.net> <20640.1439475986@sss.pgh.pa.us> <20150813143833.GB3685@tamriel.snowman.net> <21502.1439478124@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VRy2DAmnTueP9XfJ" Content-Disposition: inline In-Reply-To: <21502.1439478124@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-61-generic (x86_64) X-Uptime: 11:04:38 up 8 days, 23:35, 4 users, load average: 0.02, 0.07, 0.10 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 --VRy2DAmnTueP9XfJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Stephen Frost writes: > > I agree, that's a bit unfortunate, but it strikes me as pretty unlikely > > that we're ever going to change those tests or that a code change would > > end up causing yet another different plan before 9.1 is completely out > > of support in the next couple years. >=20 > Meh. 9.0 will be dead in a month or two, but 9.1 still has a ways to go, > and I don't really want to be dealing with this issue every time Andreas' > fuzz testing finds another corner case :-(. It was hard enough devising > regression tests that used stable table data for those cases as it was. >=20 > Frequently, when building a planner regression test, it's important that > a particular plan shape be selected (eg because what you're trying to test > is that setrefs.c postprocessing does the right thing with a given case). > So if we take supporting brolga's behavior as-is as a requirement, it's > not always going to be good enough to just maintain an alternate output > file; we'd have to try to adjust the test query to make it do the right > thing. It's bad enough dealing with 32/64bit and endianness dependencies > for that, I don't want minute compiler codegen choices entering into it > as well. Certainly a good point. > >> On the whole I'm leaning towards back-patching 33e99153e. While the c= ase > >> of exactly equal plan costs does come up in the regression tests (which > >> tend to inspect plans for queries on small simple tables), I think it's > >> relatively unlikely to happen with real-world data. >=20 > > I agree it's unlikely, but I don't particularly like changing our mind > > on a back-patching decision 3 years later to satisfy our regression > > tests. >=20 > Actually, I'd take that the other way around: now that the patch has been > out for awhile, and we've not heard squawks that could be traced to it, > there's a much better argument that back-patching would be safe than there > was at the time. I definitely agree with that when it comes to bug cases, but I'm a bit more wary around planner changes. Still, I don't recall any specific complaints about plan changes from pre-9.2 to 9.2+ in such corner cases and I do agree with you that real data would make this far less likely to happen. > There is certainly some risk in making changes that are only for ease of > maintenance and don't fix a provable bug ... but it's not like the other > changes I've committed into 9.0 and 9.1 lately don't change any > corner-case planner behaviors. Besides, you could argue that it is a bug > if rebuilding with a different compiler can change the planner's behavior. Good point. Thanks! Stephen --VRy2DAmnTueP9XfJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVzLJ7AAoJEO1sijiDR2RVBjQP/1eruYcg5mtbj35553qfw3sM jeiaCyT3CBRTu2lZvixMQkiReaxm4l2iBlqCaU2qrTxMTb9qyxCxay27lMlc4c9d ByYabv0orpz2slVKMInCe4DbY6lhsqWrIeGu3t+hlOBW0yN5KW/Ydgu5MLrQGmXz 7rRVS35goer18O2GaTcuL+cxn3ezt0+9TdlbpjrkUqDiOzghLZ6KPD4yYtzDfLWM /LV1B29PaMTp5bi8ZFsLJV7Fi6xVQpL25sGMe6g849e9xKSgNPRInfOjd01KAbBP lpK4XceXTlxk84fPJ65UEYqYDdvm2ZOR335p5R8PuL2/Ilu4HoRABiua1mT6w9vf mgoCVP/1Z+BlNPHfniqH+H3VqZqqUhGfCAcGLIX35Z6ttE7Gu7uxgPMUvUTlXMfx a0MfZ/Bww3gg7fh1eFIRyuXjJQqAXq4p6A5d2hew/W1sVeKJQrtpqWLA4f3jD0eM UNOw0VFUcYVKNmnOjSrOpiSUN5XRjBK7RyFtOtzkwB3AlV/D5UT91OUs5O982NzL mFMN15UYo/5C5U+1oCBwUPMQwML8GhVxXyC/QB/lFoDEGqqPwybypg/r1w3aJFy6 saFmWnzk8xc4p/HPyyU5VHfX8urlcTyAVTJMMdDdpVcLJ1iPHyq1Dq/QXJzKwZ/x 4Lt2zJT96uhtxTQoDlSE =2U0W -----END PGP SIGNATURE----- --VRy2DAmnTueP9XfJ--