pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexey Klyukin <alexk@hintbits.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Lack of index usage when doing array casts
Date: Fri, 21 Feb 2014 17:12:01 -0500
Message-ID: <19686.1393020721@sss.pgh.pa.us> (raw)
In-Reply-To: <5576.1393009497@sss.pgh.pa.us>
References: <CAAS3ty+GD9xfh4M4OiGLSQxHRyQGUS1VUaofdxqCn0A=_z4rRw@mail.gmail.com>
	<5576.1393009497@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

I wrote:
> Hmm.  IIRC the text to enum cast is considered stable not immutable, which
> is why that doesn't get folded to a Const on sight.  However, it seems
> like it'd be okay for scalararraysel() to reduce stable expressions for
> estimation purposes, ie it should be using estimate_expression_value.

I've committed a patch for this; it will be in 9.3.4.

			regards, tom lane


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



view thread (5+ messages)  latest in thread

Message-ID: <19686.1393020721@sss.pgh.pa.us>
Permalink:  ../19686.1393020721@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19686.1393020721@sss.pgh.pa.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alexk@hintbits.com
  Subject: Re: Lack of index usage when doing array casts
  In-Reply-To: <19686.1393020721@sss.pgh.pa.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