Greenplum 模糊查询 实践
标签
PostgreSQL , Greenplum , orafunc , 阿里云HybridDB for PostgreSQL , reverse , like , 模糊查询
背景
文本搜索的需求分为:
1、全匹配,如:
select * from table where column = 'xxxx';
2、后模糊,如:
select * from table where column like 'xxxx%';
3、前模糊,如:
select * from table where column like '%xxxx';
4、前后模糊,如:
select * from table where column like '%xxxx%';
《中文模糊查询性能优化 by PostgreSQL trgm》
5、正则,如:
select