Re: Fatal error after starting postgres : sys identifiers must be different

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Indrajit Roychoudhury <indrajit(dot)roychoudhury(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>, pgsql-novice(at)postgresql(dot)org, andres(at)anarazel(dot)de
Subject: Re: Fatal error after starting postgres : sys identifiers must be different
Date: 2013-07-18 22:31:07
Message-ID: CAB7nPqQuKShOBNJZdx163s0f_Y2Qjkqtj8QMCQi1Nsyadu8dug@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-novice pgsql-www

On Fri, Jul 19, 2013 at 5:02 AM, Indrajit Roychoudhury
<indrajit(dot)roychoudhury(at)gmail(dot)com> wrote:
> Could you please let me know what does the error "system identifiers are
> same" mean? Below is the snapshot from one of the masters.
> I am setting up BDR as per the wiki
> http://wiki.postgresql.org/wiki/BDR_User_Guide#Initial_setup
> and source @
> git://git.postgresql.org/git/users/andresfreund/postgres.git
>
> irc1(at)ubuntuirc:~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin$ ./postgres -D
> ~/bdr2/postgres-d6ed89e/postgres-bdr-bin/bin/data2/
> LOG: bgworkers, connection: dbname=testdb2
> LOG: option: dbname, val: testdb2
> LOG: registering background worker: bdr apply: ubuntuirc2
> LOG: loaded library "bdr"
> LOG: database system was shut down at 2013-03-17 10:56:52 PDT
> LOG: doing logical startup from 0/17B6410
> LOG: starting up replication identifier with ckpt at 0/17B6410
> LOG: autovacuum launcher started
> LOG: starting background worker process "bdr apply: ubuntuirc2"
> LOG: database system is ready to accept connections
> LOG: bdr apply: ubuntuirc2 initialized on testdb2, remote dbname=testdb2
> replication=true fallback_application_name=bdr
> FATAL: system identifiers must differ between the nodes
> DETAIL: Both system identifiers are 5856368744762683487.
I am not the best specialist about logical replication, but as it
looks to be a requirement to have 2 nodes with different system
identifiers, you shouldn't link 1 node to another node whose data
folder has been created from the base backup of the former (for
example create the 2nd node based on a base backup of the 1st node).
The error returned here would mean so.

> LOG: worker process: bdr apply: ubuntuirc2 (PID 16712) exited with exit
> code 1
> ^CLOG: received fast shutdown request
> LOG: aborting any active transactions
> LOG: autovacuum launcher shutting down
> LOG: shutting down
>
> pgcontrol_data outputs different database system ids for the two nodes. So
> don't understand why it says identifiers are same.
Are you sure? Please re-ckeck.

> postgresql.conf content in one of the masters is like this-
>
> /////////////////
> shared_preload_libraries = 'bdr'
> bdr.connections = 'ubuntuirc2'
> bdr.ubuntuirc2.dsn = 'dbname=testdb2'
> /////////////////
>
> Two nodes are ubuntuirc and ubuntuirc2. Above is the output of the
> postgresql.conf from ubuntuirc.
If this behavior is confirmed, I think that this bug should be
reported directly to Andres and not this mailing list, just because
logical replication is not integrated into Postgres core as of now.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Gierth 2013-07-18 22:33:15 Re: Proposal/design feedback needed: WITHIN GROUP (sql standard ordered set aggregate functions)
Previous Message Jeff Janes 2013-07-18 22:30:20 Re: is a special cost for external sort?

Browse pgsql-novice by date

  From Date Subject
Next Message Indrajit Roychoudhury 2013-07-18 23:46:03 Re: [HACKERS] Fatal error after starting postgres : sys identifiers must be different
Previous Message Indrajit Roychoudhury 2013-07-18 20:02:29 Re: Fatal error after starting postgres : sys identifiers must be different

Browse pgsql-www by date

  From Date Subject
Next Message Indrajit Roychoudhury 2013-07-18 23:46:03 Re: [HACKERS] Fatal error after starting postgres : sys identifiers must be different
Previous Message Indrajit Roychoudhury 2013-07-18 20:02:29 Re: Fatal error after starting postgres : sys identifiers must be different