pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian Fehrle <brianf@consistentstate.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: View with and without ::text casting performs differently.
Date: Wed, 18 Sep 2013 12:50:05 -0600
Message-ID: <5239F5DD.8090007@consistentstate.com> (raw)
In-Reply-To: <2215.1378492532@sss.pgh.pa.us>
References: <5229097C.4070401@consistentstate.com>
	<1960.1378425018@sss.pgh.pa.us>
	<522A05E1.1070103@consistentstate.com>
	<2215.1378492532@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

On 09/06/2013 12:35 PM, Tom Lane wrote:
> Brian Fehrle <brianf@consistentstate.com> writes:
>> On 09/05/2013 05:50 PM, Tom Lane wrote:
>>> I rather doubt that the now-explicit-instead-of-implicit casts have much
>>> to do with that.  It seems more likely that you forgot to re-ANALYZE in
>>> the new database, or there are some different planner settings, or
>>> something along that line.
>> I have two versions of the view in place on the same server, one with
>> the typecasting and one without, and this is where I see the differences
>> (no ::text runs in 0.5ms and with ::text runs in 13 or so minutes with
>> nested loop), so it's all running off the same statistics on the data.
> Hm.  Can you provide a self-contained example?

I'll see what I can do to recreate this with bogus data. It's sensitive 
data that may just be some sort of anomaly in terms of the data 
distribution that is causing it.

- Brian F
>
> 			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 (8+ messages)

Message-ID: <5239F5DD.8090007@consistentstate.com>
Permalink:  ../5239F5DD.8090007@consistentstate.com/
Also on:    postgresql.org/message-id/5239F5DD.8090007@consistentstate.com

 · 

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: brianf@consistentstate.com, tgl@sss.pgh.pa.us
  Subject: Re: View with and without ::text casting performs differently.
  In-Reply-To: <5239F5DD.8090007@consistentstate.com>

* 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