Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 9CA1C864D5A for ; Mon, 12 Mar 2012 03:12:53 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S6yUc-0003nx-Gc for pgsql-bugs@postgresql.org; Mon, 12 Mar 2012 06:12:52 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q2C6CBLE029291; Mon, 12 Mar 2012 02:12:11 -0400 (EDT) To: Claus Stadler cc: pgsql-bugs@postgresql.org Subject: Re: Regression from 8.4 to 9.1.2/9.1.3: Optimizing filters on constants in unions In-reply-to: <4F516CC4.9020606@informatik.uni-leipzig.de> References: <4F516CC4.9020606@informatik.uni-leipzig.de> Comments: In-reply-to Claus Stadler message dated "Sat, 03 Mar 2012 01:58:44 +0100" Date: Mon, 12 Mar 2012 02:12:11 -0400 Message-ID: <29290.1331532731@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/81 X-Sequence-Number: 32642 Claus Stadler writes: > Hi, not sure if this bug is already known, so sorry if it is ;) > Filtering a Union on constant custom type: This seems to be another unpleasant consequence of http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=57664ed25e5dea117158a2e663c29e60b3546e1c I'm starting to think we need to revert that in favor of some other solution, though I have no idea what yet. regards, tom lane