Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WVtUi-00016p-Fy for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Apr 2014 02:04:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WVtUi-0002kM-05 for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Apr 2014 02:04:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WVtUh-0002kG-EJ for pgsql-bugs@postgresql.org; Fri, 04 Apr 2014 02:04:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WVtUf-0002Bc-A7 for pgsql-bugs@postgresql.org; Fri, 04 Apr 2014 02:04:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s3424ORt022003; Thu, 3 Apr 2014 22:04:24 -0400 From: Tom Lane To: dmitry-ryabov@mail.ru cc: pgsql-bugs@postgresql.org Subject: Re: BUG #9817: Broken index detection in case of functions with variadic array parameters In-reply-to: <20140401064409.342.76410@wrigleys.postgresql.org> References: <20140401064409.342.76410@wrigleys.postgresql.org> Comments: In-reply-to dmitry-ryabov@mail.ru message dated "Tue, 01 Apr 2014 06:44:09 -0000" Date: Thu, 03 Apr 2014 22:04:24 -0400 Message-ID: <22002.1396577064@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org dmitry-ryabov@mail.ru writes: > -- BUG! index scan isn't used > select * from test where test_value_func(value, 'a', 'b') > 60; > -- index scan used > select * from test where test_value_func(value, VARIADIC ARRAY['a'::text, > 'b'::text])>60 I've committed a fix for this. Thanks for the report! regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs