Re: [BUGS] BUG #14532: implict type case invalid in gin? - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [BUGS] BUG #14532: implict type case invalid in gin?
Date
Msg-id 16457.1486484767@sss.pgh.pa.us
Whole thread Raw
In response to [BUGS] BUG #14532: implict type case invalid in gin?  (digoal@126.com)
List pgsql-bugs
digoal@126.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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #14531: server process (PID 12714) was terminated by signal 11: Segmentation fault
Next
From: Tom Lane
Date:
Subject: Re: [BUGS] BUG #14524: Commands compare with nested subquery expressions fail with "should not reference subplan var"