From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Frost <jeff@pgexperts.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6092: specific casting required for gist indexing of bigint
Date: Tue, 05 Jul 2011 20:06:11 -0400
Message-ID: <2786.1309910771@sss.pgh.pa.us> (raw)
In-Reply-To: <201107052343.p65NhoKD055167@wwwmaster.postgresql.org>
References: <201107052343.p65NhoKD055167@wwwmaster.postgresql.org>
"Jeff Frost" <jeff@pgexperts.com> writes:
> Ran into a situation with a customer who is using the btree_gist contrib
> module to allow combined index of some tsearch data and two other columns.
> One of these other columns is a bigint field. I noticed that the combined
> index won't be used by the planner unless you specifically cast the bare
> number to a bigint.
If memory serves, the btree_gist opclasses don't include any cross-type
operators, so "int8 = int4" doesn't work here.
regards, tom lane
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, jeff@pgexperts.com
Subject: Re: BUG #6092: specific casting required for gist indexing of bigint
In-Reply-To: <2786.1309910771@sss.pgh.pa.us>
References: <201107052343.p65NhoKD055167@wwwmaster.postgresql.org> <2786.1309910771@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