Skip to content

[bug] the result is different when rum index(for tsquery) used and not used #123

Open
@miaojianxin

Description

@miaojianxin
  1. create table rules(id serial, keyword_rule tsquery);
  2. insert into rules(keyword_rule) values('( 实名举报 | 实名投诉 | 实名曝光 | 实名控诉 ) & !( 信用分 | 网上离婚 | 快速离婚 | 起诉离婚 | 考证 | 职称 | 免费咨询 | 一对一 | 提现 | 额度 | 专业 | 小说 | 离婚协议 | 追剧 | 好剧 | 短剧 | 知识 | 分享 | 保额 | 影视 | ���言 | 驾校 | 恭喜 | 高考 | 广告 | 国货 | 直播 | 二手 | 同城 | 如何 & ( 看待 | 避免 | 选择 | 导师 ) | 主播 | 说事 | 说新闻 | ( 纠纷 | 仲裁 | 考研 | 法律 ) & ( 咨询 | 专家 | 老师 ) | 汽车 & ( 服务 | 保养 | 美容 | 脚垫 ) | 转发 & 有需要 | 全集 | 房产人 | 上门 & 安装 )');
  3. select id from rules where to_tsvector('jiebaqry_golaxy','实名举报')@@keyword_rule;
    get result id:1
  4. create index idx_rum on rules using rum(keyword_rule);
  5. set enable_seqscan to FALSE ;
    ensure the rum index is used
  6. select get different resut
    exec sql: select id from rules where to_tsvector('jiebaqry_golaxy','实名举报')@@keyword_rule;
    get null.

result: the result is different when rum index(for tsquery) used and not used

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions