CREATE TABLE memos (
  id integer,
  title varchar(1023)
);

INSERT INTO memos VALUES (1, 'PostgreSQL');
INSERT INTO memos VALUES (2, 'Groonga');
INSERT INTO memos VALUES (3, 'PGroonga');

CREATE INDEX grnindex ON memos
  USING pgroonga (title pgroonga.varchar_ops);

SET enable_seqscan = off;
SET enable_indexscan = off;
SET enable_bitmapscan = on;

SELECT id, title
  FROM memos
 WHERE title = 'Groonga';

DROP TABLE memos;
