pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Francisco Grau <grau.fran@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14518: FTS index not triggered when using function to provide the tsquery
Date: Fri, 27 Jan 2017 09:04:48 -0500
Message-ID: <28388.1485525888@sss.pgh.pa.us> (raw)
In-Reply-To: <CAChPaEwnBNbf7uyL__cXe1usnMvQf10nV5o70p_vz8DQn-W3Sw@mail.gmail.com>
References: <20170127103939.1431.54363@wrigleys.postgresql.org>
	<27964.1485525231@sss.pgh.pa.us>
	<CAChPaEwnBNbf7uyL__cXe1usnMvQf10nV5o70p_vz8DQn-W3Sw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Francisco Grau <grau.fran@gmail.com> writes:
> That makes perfect sense. It is weird that it works using the CTE though.

Well, the CTE forces single evaluation, so that the value is a constant
again from the outer query's perspective.

			regards, tom lane


-- 
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 (4+ messages)

Message-ID: <28388.1485525888@sss.pgh.pa.us>
Permalink:  ../28388.1485525888@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28388.1485525888@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 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: tgl@sss.pgh.pa.us, grau.fran@gmail.com
  Subject: Re: BUG #14518: FTS index not triggered when using function to provide the tsquery
  In-Reply-To: <28388.1485525888@sss.pgh.pa.us>
  References: <20170127103939.1431.54363@wrigleys.postgresql.org> <27964.1485525231@sss.pgh.pa.us> <CAChPaEwnBNbf7uyL__cXe1usnMvQf10nV5o70p_vz8DQn-W3Sw@mail.gmail.com> <28388.1485525888@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