Re: Setting up BDR 0.9.0 - error on bdr_group_create - Mailing list pgsql-general

From Craig Ringer
Subject Re: Setting up BDR 0.9.0 - error on bdr_group_create
Date
Msg-id CAMsr+YFmybXx9Fbh1daHsuYA4Up7DKvs2PZtE+WEVqggo-oZ+g@mail.gmail.com
Whole thread Raw
In response to Setting up BDR 0.9.0 - error on bdr_group_create  (Steve Boyle <sboyle@connexity.com>)
List pgsql-general

On 26 March 2015 at 06:02, Steve Boyle <sboyle@connexity.com> wrote:
 
postgres=# SELECT bdr.bdr_group_create(
postgres(#       local_node_name := 'cxtlabdev014',
postgres(#       node_external_dsn := 'port=5432 dbname=prod'
postgres(# );
ERROR:  getting remote node id failed
DETAIL:  SELECT sysid, timeline, dboid FROM bdr.bdr_get_local_nodeid() failed with: ERROR:  schema "bdr" does not exist

It looks like you're running bdr_group_create from the 'postgres' database, but you're specifying the dbname 'prod' as the database that you're creating the bdr group for.

You should CREATE EXTENSION bdr;  in the 'prod' database and run bdr.bdr_group_create while connected to 'prod'.

The documentation should be more explicit about the fact that the management commands affect the database they are run in.

Thanks for writing a clear and detailed report with errors, versions, and command shown. It's much appreciated.

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

pgsql-general by date:

Previous
From: Steve Boyle
Date:
Subject: Setting up BDR 0.9.0 - error on bdr_group_create
Next
From: Craig Ringer
Date:
Subject: Re: BDR - triggers on receiving node?