2017-06-23 5 views
0

Ich habe postgresql 9.5 und postgresql-plperl-9.5 und Bucardo Version 5.4.1Probleme mit Bucardo Installation

nach Bucardo installieren

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

Ich versuche Bucardo

aber Fehler zu starten ist " DBD :: Pg :: st ausführen fehlgeschlagen: Fehler: Relation" bucardo.bucardo_config "existiert nicht LINE 1: SELECT Einstellung von Bucardo.bucardo_config WHERE LOWER (Name) ... ^ at/usr/bin/Bucardo Linie 54 5. " Wo ist ein Problem hier?

Antwort

0

Bitte Tabelle erstellen mit folgenden Abfrage in postgresql Bucardo Datenbank

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')));