pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: maxim.boguk@postgresql-consulting.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12862: Bug in intarray extension operators (using generic selectivity estimators instead of array oriented)
Date: Tue, 17 Mar 2015 15:15:31 -0400
Message-ID: <20150317191531.GE10492@momjian.us> (raw)
In-Reply-To: <20150313145456.2516.25890@wrigleys.postgresql.org>
References: <20150313145456.2516.25890@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Fri, Mar 13, 2015 at 02:54:56PM +0000, maxim.boguk@postgresql-consulting.com wrote:
> As you could see after installing the intarray extension PostgreSQL started
> use a general selectivity estimator.   Estimated rows=10000 before create
> extension and estimated rows=10 after, 10000 - correct one.
> 
> Problem that custom (redefined) intarray && @> <@ operators are defined with
> contsel/contjoinsel instead of arraycontsel/arraycontjoinsel.
> 
> However, simple change extension/intarray--1.0.sql with correct CREATE
> OPERATOR doesn't fix issue:
> test=# explain analyze select * from test where f1 && array[100];
> ERROR:  arraycontsel called for unrecognized operator 814221170
> 
> I cannot find any quick fix for this issue because OID of custom && operator
> isn't fixed, so no simple change of arraycontsel/arraycontjoinsel possible.
> 
> An issue exists in any version since introducing
> arraycontsel/arraycontjoinsel in 9.2 up to HEAD.

Yeah, I am not sure what to recommend here as our custom type optimizer
statistics are not as good as the built-in ones.  Did you try running
ANALYZE?

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <20150317191531.GE10492@momjian.us>
Permalink:  ../20150317191531.GE10492@momjian.us/
Also on:    postgresql.org/message-id/20150317191531.GE10492@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bruce@momjian.us, maxim.boguk@postgresql-consulting.com
  Subject: Re: BUG #12862: Bug in intarray extension operators (using generic selectivity estimators instead of array oriented)
  In-Reply-To: <20150317191531.GE10492@momjian.us>
  References: <20150313145456.2516.25890@wrigleys.postgresql.org> <20150317191531.GE10492@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox