Kouhei Sutou
null+****@clear*****
Wed Jan 27 10:06:53 JST 2016
Kouhei Sutou 2016-01-27 10:06:53 +0900 (Wed, 27 Jan 2016) New Revision: 6cede8f88b4db7bdee61c43ee9751f1bde626261 https://github.com/pgroonga/pgroonga/commit/6cede8f88b4db7bdee61c43ee9751f1bde626261 Message: Use "?" instead of "@" for "query" Modified files: expected/full-text-search/text/single/query-contain/bitmapscan.out expected/full-text-search/text/single/query-contain/indexscan.out expected/full-text-search/text/single/query-contain/seqscan.out pgroonga.sql sql/full-text-search/text/single/query-contain/bitmapscan.sql sql/full-text-search/text/single/query-contain/indexscan.sql sql/full-text-search/text/single/query-contain/seqscan.sql src/pgroonga.h Modified: expected/full-text-search/text/single/query-contain/bitmapscan.out (+1 -1) =================================================================== --- expected/full-text-search/text/single/query-contain/bitmapscan.out 2016-01-27 00:05:02 +0900 (097ac75) +++ expected/full-text-search/text/single/query-contain/bitmapscan.out 2016-01-27 10:06:53 +0900 (d63cbbd) @@ -12,7 +12,7 @@ SET enable_indexscan = off; SET enable_bitmapscan = on; SELECT id, content FROM memos - WHERE content &@> Array['rdbms', 'engine']; + WHERE content &?> Array['rdbms', 'engine']; id | content ----+------------------------------------------ 1 | PostgreSQL is a RDBMS. Modified: expected/full-text-search/text/single/query-contain/indexscan.out (+1 -1) =================================================================== --- expected/full-text-search/text/single/query-contain/indexscan.out 2016-01-27 00:05:02 +0900 (af38fc9) +++ expected/full-text-search/text/single/query-contain/indexscan.out 2016-01-27 10:06:53 +0900 (d0cbce7) @@ -12,7 +12,7 @@ SET enable_indexscan = on; SET enable_bitmapscan = off; SELECT id, content FROM memos - WHERE content &@> Array['rdbms', 'engine']; + WHERE content &?> Array['rdbms', 'engine']; id | content ----+------------------------------------------ 1 | PostgreSQL is a RDBMS. Modified: expected/full-text-search/text/single/query-contain/seqscan.out (+1 -1) =================================================================== --- expected/full-text-search/text/single/query-contain/seqscan.out 2016-01-27 00:05:02 +0900 (d830ff5) +++ expected/full-text-search/text/single/query-contain/seqscan.out 2016-01-27 10:06:53 +0900 (3230f0f) @@ -10,7 +10,7 @@ SET enable_indexscan = off; SET enable_bitmapscan = off; SELECT id, content FROM memos - WHERE content &@> Array['rdbms', 'engine']; + WHERE content &?> Array['rdbms', 'engine']; id | content ----+------------------------------------------ 1 | PostgreSQL is a RDBMS. Modified: pgroonga.sql (+2 -2) =================================================================== --- pgroonga.sql 2016-01-27 00:05:02 +0900 (9dce550) +++ pgroonga.sql 2016-01-27 10:06:53 +0900 (e8e1d68) @@ -382,7 +382,7 @@ CREATE FUNCTION pgroonga.query_contain_text(text, text[]) IMMUTABLE STRICT; -CREATE OPERATOR &@> ( +CREATE OPERATOR &?> ( PROCEDURE = pgroonga.query_contain_text, LEFTARG = text, RIGHTARG = text[] @@ -390,4 +390,4 @@ CREATE OPERATOR &@> ( CREATE OPERATOR CLASS pgroonga.text_full_text_search_ops_v2 FOR TYPE text USING pgroonga AS - OPERATOR 12 &@> (text, text[]); + OPERATOR 12 &?> (text, text[]); Modified: sql/full-text-search/text/single/query-contain/bitmapscan.sql (+1 -1) =================================================================== --- sql/full-text-search/text/single/query-contain/bitmapscan.sql 2016-01-27 00:05:02 +0900 (d2bfdb1) +++ sql/full-text-search/text/single/query-contain/bitmapscan.sql 2016-01-27 10:06:53 +0900 (bc87afa) @@ -16,6 +16,6 @@ SET enable_bitmapscan = on; SELECT id, content FROM memos - WHERE content &@> Array['rdbms', 'engine']; + WHERE content &?> Array['rdbms', 'engine']; DROP TABLE memos; Modified: sql/full-text-search/text/single/query-contain/indexscan.sql (+1 -1) =================================================================== --- sql/full-text-search/text/single/query-contain/indexscan.sql 2016-01-27 00:05:02 +0900 (60fed74) +++ sql/full-text-search/text/single/query-contain/indexscan.sql 2016-01-27 10:06:53 +0900 (62d512d) @@ -16,6 +16,6 @@ SET enable_bitmapscan = off; SELECT id, content FROM memos - WHERE content &@> Array['rdbms', 'engine']; + WHERE content &?> Array['rdbms', 'engine']; DROP TABLE memos; Modified: sql/full-text-search/text/single/query-contain/seqscan.sql (+1 -1) =================================================================== --- sql/full-text-search/text/single/query-contain/seqscan.sql 2016-01-27 00:05:02 +0900 (1897290) +++ sql/full-text-search/text/single/query-contain/seqscan.sql 2016-01-27 10:06:53 +0900 (a1bae3a) @@ -13,6 +13,6 @@ SET enable_bitmapscan = off; SELECT id, content FROM memos - WHERE content &@> Array['rdbms', 'engine']; + WHERE content &?> Array['rdbms', 'engine']; DROP TABLE memos; Modified: src/pgroonga.h (+1 -1) =================================================================== --- src/pgroonga.h 2016-01-27 00:05:02 +0900 (a933373) +++ src/pgroonga.h 2016-01-27 10:06:53 +0900 (c42eeaf) @@ -24,7 +24,7 @@ #define PGrnRegexpStrategyNumber 10 /* operator @~ (@~ in Groonga) */ #define PGrnJSONContainStrategyNumber 11 /* operator @> */ -#define PGrnQueryContainStrategyNumber 12 /* operator &@> */ +#define PGrnQueryContainStrategyNumber 12 /* operator &?> */ /* file and table names */ #define PGrnLogBasename "pgroonga.log" -------------- next part -------------- HTML����������������������������...Download