pgbigm / pg_bigm

The pg_bigm module provides full text search capability in PostgreSQL. This module allows a user to create 2-gram (bigram) index for faster full text search.
Other
62 stars 8 forks source link

AWS Graviton EC2 Reader instance returns an empty result #15

Open malikmuhammad1 opened 7 months ago

malikmuhammad1 commented 7 months ago

writer: r5.large standby: r6g.large

step1: writer

CREATE EXTENSION pg_bigm; CREATE INDEX ix_t1_content ON t1 using GIN (content gin_bigm_ops);

insert into t1 (col1, col2, content) SELECT gs10, gs20, concat(md5(random()::text)) AS random_string FROM generate_series(1, 1) AS gs;

update t1 set content = concat(content,'가나다') where id = 1;

rdsadmin=# select * from t1 where content like '%가나다%'; id | col1 | col2 | content
----+------+------+---------------------------------------- 1 | 10 | 20 | 7329992bb1dc5fd43140f6c596cd035c가나다 (1 row)

step2: standby reader

rdsadmin=# select * from t1 where content like '%가나다%'; id | col1 | col2 | content ----+------+------+--------- (0 rows)

rdsadmin=# select * from t1 where content like '%bb1dc5fd431%'; id | col1 | col2 | content
----+------+------+---------------------------------------- 1 | 10 | 20 | 7329992bb1dc5fd43140f6c596cd035c가나다 (1 row)

ardentperf commented 5 months ago

i think this repo is a mirror, afaik it's not monitored. this particular issue was discussed at https://osdn.net/projects/pgbigm/lists/archive/hackers/2024-February/000370.html

MasaoFujii commented 3 months ago

This GitHub page is now the official site for pg_bigm. Let's discuss things here.

The same issue was reported and discussed on pgsql-hackers. It's best to wait for a consensus there, and then update pg_bigm following how pg_trgm resolves the issue. https://www.postgresql.org/message-id/CB11ADBC-0C3F-4FE0-A678-666EE80CBB07@amazon.com