小编the*_*erg的帖子

使用带bigint列的postgresql gin或gist索引

我试图在bigint列上创建gin索引并收到错误(PostgreSQL 9.1.9/Debian 7).

CREATE TABLE test (id bigint CONSTRAINT test_pkey PRIMARY KEY, field bigint);

CREATE INDEX idx_test_field ON test using GIN(field);

ERROR:  data type bigint has no default operator class for access method "gin"
HINT:  You must specify an operator class for the index or define a default operator class for the data type.
Run Code Online (Sandbox Code Playgroud)

对于int8杜松子酒,gist索引没有默认支持吗?

postgresql bigint

7
推荐指数
1
解决办法
3897
查看次数

标签 统计

bigint ×1

postgresql ×1