pglogical most basic setup for logical replication - Mailing list pgsql-hackers

From Sebastien Diemer
Subject pglogical most basic setup for logical replication
Date
Msg-id CAF89c4avADb-LA73pq8gK=XXAZt6Dw8ZAWkD+jbeVhR+hWSz7g@mail.gmail.com
Whole thread Raw
Responses Re: pglogical most basic setup for logical replication
List pgsql-hackers
Hello,

I did not manage to make the simplest logical replication scheme work with pglogical.
My setup is the following: two postgresql nodes (one provider and one subscriber) with one database and one simple table:
`CREATE TABLE t (c1 integer, PRIMARY KEY (c1));`

I followed the README provided with pglogical source code without any success.
I created the provider and the subscriber nodes without problem but then, after sending the sql query `SELECT pglogical.create_subscription('subscription1', 'host=localhost port=55432 dbname=postgres');`  I got:

"ERROR:  pglogical_origin extension not found"

So I `CREATE EXTENSION pglogical_origin;` on the subscriber node (this step is not mentioned in the README).

But then, I have the following error on the worker running on the subscriber node:

"ERROR:  subscriber subscription1 initialization failed during nonrecoverable step (s), please try the setup again"

I tried to replay the setup again without any success.
What am I missing here ?

Thanks for your help


Sébastien DIEMER

pgsql-hackers by date:

Previous
From: Torsten Zuehlsdorff
Date:
Subject: Re: Add generate_series(date,date) and generate_series(date,date,integer)
Next
From: Craig Ringer
Date:
Subject: Re: pglogical most basic setup for logical replication