0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Pgroonga + replicationで同期されない。

Last updated at Posted at 2018-01-16

#Pgroonga + replicationでREINDEXするとslaveのgroonga dbだけ同期されない
postgresのテーブルなどは問題ないけど、

SELECT COUNT(*) FROM テーブル名 WHERE カラム名 &@~ 'クエリ';
ERROR:  pgroonga: object isn't found: <Sources111111>

が通らないし。

SELECT pgroonga_command('select テーブル');

も通らない
なんじゃこれと思ったら。

SELECT pgroonga_command('io_flush');

したら同期とれた。^^;

ちゃんと公式ドキュメントには、バックアップ前にflushしとけと書いてあるのに
忘れてただけっぽい。

flushしてなくても、バクアップ後にINSERT UPDATEが問題なく動いてたけど、
REINDEXするとエラーでてたので焦った。

0
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?