From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: ozan.gerdaneri@gmail.com
Subject: BUG #15751: Unexpected behaviour at plainto_tsquery funciton
Date: Sat, 13 Apr 2019 21:11:30 +0000
Message-ID: <15751-e56659a134930bc9@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15751
Logged by: Ozan Gerdaneri
Email address: ozan.gerdaneri@gmail.com
PostgreSQL version: 11.0
Operating system: win 10
Description:
Hi,
My query is like this :
.......
WHERE to_tsvector(COALESCE("blog"."name" )) @@ (plainto_tsquery("cat")) =
true
That is, I am searching for the word "cat" in name column. But the following
error is given. Why is plainto_tsquery is looking for a column name?
^
********** Error **********
ERROR: column "cat" does not exist
SQL state: 42703
Character: 511
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: noreply@postgresql.org, ozan.gerdaneri@gmail.com
Subject: Re: BUG #15751: Unexpected behaviour at plainto_tsquery funciton
In-Reply-To: <15751-e56659a134930bc9@postgresql.org>
References: <15751-e56659a134930bc9@postgresql.org>
* 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