2017-06-23 96 views
0

我的PostgreSQL 9.5和PostgreSQL-plperl-9.5和Bucardo這版本5.4.1與Bucardo這安裝問題

Bucardo這之後安裝

Current connection settings: 
1. Host:   localhost 
2. Port:   5432 
3. User:   postgres 
4. Database:  postgres 
5. PID directory: /var/run/bucardo 

我試圖啓動Bucardo這

但錯誤是「 DBD :: Pg :: st執行失敗:錯誤:關係」bucardo.bucardo_config「不存在 LINE 1:SELECT設置FROM bucardo.bucardo_config WHERE LOWER(名稱)... ^ at/usr/bin/bucardo線54 5. 「 這裏的問題在哪裏?

回答

0

在PostgreSQL中Bucardo這數據庫使用下面的查詢,請創建表

CREATE TABLE bucardo.bucardo_config (
    name  TEXT  NOT NULL, -- short unique name, maps to %config inside Bucardo 
    setting TEXT  NOT NULL, 
    about TEXT   NULL, -- long description 
    type  TEXT   NULL, -- sync or goat 
    item  TEXT   NULL, -- which specific sync or goat 
    cdate TIMESTAMPTZ NOT NULL DEFAULT now() 
); 
COMMENT ON TABLE bucardo.bucardo_config IS $$Contains configuration variables for a specific Bucardo instance$$; 

CREATE UNIQUE INDEX bucardo_config_unique ON bucardo.bucardo_config(LOWER(name)) WHERE item IS NULL; 

CREATE UNIQUE INDEX bucardo_config_unique_name ON bucardo.bucardo_config(name,item,type) WHERE item IS NOT NULL; 

ALTER TABLE bucardo.bucardo_config ADD CONSTRAINT valid_config_type CHECK (type IN ('sync','goat')); 

ALTER TABLE bucardo.bucardo_config ADD CONSTRAINT valid_config_isolation_level 
CHECK (name <> 'isolation_level' OR (setting IN ('serializable','repeatable read')));