Re: Inconsistent performance with LIKE and bind variable on long-lived connection

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Steven Grimm <sgrimm(at)thesegovia(dot)com>
Cc: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Inconsistent performance with LIKE and bind variable on long-lived connection
Date: 2017-06-11 15:37:12
Message-ID: 30125.1497195432@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I wrote:
> Right. The plancache code is designed to switch to a generic plan if
> that doesn't seem to save anything compared to a custom plan that's
> built for the specific parameter value(s).

Er, -ENOCAFFEINE. That's backwards of course. I think the rest of
what I wrote is okay.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message pinker 2017-06-11 15:50:35 Re: Huge Pages - setting the right value
Previous Message Tom Lane 2017-06-11 15:34:47 Re: ERROR: unexpected chunk number 0 (expected 1) for toast value 76753264 in pg_toast_10920100