Re: BUG #14532: implict type case invalid in gin?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: digoal(at)126(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14532: implict type case invalid in gin?
Date: 2017-02-07 16:26:07
Message-ID: 16457.1486484767@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

digoal(at)126(dot)com writes:
> postgres=# create table tbl(id int, t timestamp);
> CREATE TABLE
> postgres=# insert into tbl select 1,now() from generate_series(1,10000);
> INSERT 0 10000
> postgres=# create index idx_tbl_1 on tbl using gin (id,t);
> CREATE INDEX

Apparently you're using contrib/btree_gin, because in the core system
that would just fail. btree_gin lacks any support for cross-type
operators, so it can't index "timestamp > date" comparisons.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2017-02-07 16:40:01 Re: BUG #14524: Commands compare with nested subquery expressions fail with "should not reference subplan var"
Previous Message Tom Lane 2017-02-07 16:09:26 Re: BUG #14531: server process (PID 12714) was terminated by signal 11: Segmentation fault