Re: Searching GIN-index (FTS) and sort by timestamp-column

From: Andreas Joseph Krogh <andreas(at)visena(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Evgeniy Shishkin <itparanoia(at)gmail(dot)com>, pgsql-performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Searching GIN-index (FTS) and sort by timestamp-column
Date: 2016-03-17 17:30:12
Message-ID: VisenaEmail.ea.7101c678aa3b84c3.153859f7473@tc7-visena
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

På torsdag 17. mars 2016 kl. 18:20:23, skrev Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us
<mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us>>:
Evgeniy Shishkin <itparanoia(at)gmail(dot)com> writes:
> Uh, it works if i cast to bigint explicitly

FWIW, the reason for that is that the int8_ops operator class that
btree_gin creates doesn't contain any cross-type operators.  Probably
wouldn't be that hard to fix if somebody wanted to put in the work.

regards, tom lane
 
Thanks for info.
 
Can you explain why it works when using prepared statement without casting?
Does the machinary then know the type so the "setParameter"-call uses the
correct type?
 
Thanks.
 
-- Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas(at)visena(dot)com <mailto:andreas(at)visena(dot)com>
www.visena.com <https://www.visena.com>
<https://www.visena.com>

 

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2016-03-17 17:57:46 Re: Searching GIN-index (FTS) and sort by timestamp-column
Previous Message Tom Lane 2016-03-17 17:20:23 Re: Searching GIN-index (FTS) and sort by timestamp-column