From: Tom Lane <tgl@sss.pgh.pa.us>
To: Brian Fehrle <brianf@consistentstate.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: View with and without ::text casting performs differently.
Date: Fri, 06 Sep 2013 14:35:32 -0400
Message-ID: <2215.1378492532@sss.pgh.pa.us> (raw)
In-Reply-To: <522A05E1.1070103@consistentstate.com>
References: <5229097C.4070401@consistentstate.com>
<1960.1378425018@sss.pgh.pa.us>
<522A05E1.1070103@consistentstate.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
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?
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
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, brianf@consistentstate.com
Subject: Re: View with and without ::text casting performs differently.
In-Reply-To: <2215.1378492532@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