From: Venkatesan, Sekhar <sekhar.venkatesan@emc.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: David G. Johnston <david.g.johnston@gmail.com>
To: Mike Sofen <msofen@runbox.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Cc: Mallela, Anil <anil.mallela@emc.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Need documentation for PostgreSQL Replication support.
Date: Mon, 29 Feb 2016 04:01:18 +0000
Message-ID: <F84DE43FDACD4C45AA84E2DA016FAE2F1C66A4A7@MX105CL01.corp.emc.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
We have tried the following steps for PostgreSQL streaming replication (attached mail) and ran into issues. Can anyone indicate what is wrong with the configuration?
Thanks,
Sekhar
-----Original Message-----
From: Venkatesan, Sekhar
Sent: Monday, February 29, 2016 9:28 AM
To: 'Adrian Klaver'; 'David G. Johnston'; 'Mike Sofen'
Cc: 'Tom Lane'; 'pgsql-sql@postgresql.org'; Mallela, Anil; 'pgsql-odbc@postgresql.org'
Subject: RE: Need documentation for PostgreSQL Replication support.
Hi Folks,
Any help regarding the below topic? I want to certify PostgreSQL replication functionality with my application and I need assistance on this?
Thanks,
Sekhar
-----Original Message-----
From: Venkatesan, Sekhar
Sent: Wednesday, February 10, 2016 12:07 PM
To: 'Adrian Klaver'; 'David G. Johnston'; 'Mike Sofen'
Cc: 'Tom Lane'; 'pgsql-sql@postgresql.org'; Mallela, Anil
Subject: Need documentation for PostgreSQL Replication support.
Hi Folks,
I need official documentation/links where I find information on PostgreSQL Replication support. Can someone shed some light on this?
Thanks,
Sekhar
Hi Raghavendra/sekhar,
I have tried base postgres streaming replication with Content server. Database/tables/schema are replicated from master to slave properly but I am facing odbc connectivity issue from master to slave. Due to that I am unable to stop master postgres service and test the CS functionality when master is down.
I have added below entries in pg_hbf.conf of master vm
host all all 10.31.159.199/32 md5(master)
host all all 10.31.159.204/32 md5(slave)
and also recreated postmaster.pid file Even then I have seen below issue during odbc connectivity from master to slave:
psql: FATAL: no pg_hba.conf entry for host "10.31.159.199", user "postgres", database "postgres", SSL off
Can you please suggest me is there any other approach I can follow to resolve above issue.
please find the attached replication configuration steps with environment details.
Note : Not seeing issue with slave vm for odbce connectivity of master
Thanks,
Anil.
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbcAttachments:postgres.txt (text/plain, 1.1K) download
Master postgres server:10.31.159.199(Administrator/Password@123)
Prerequisite :create a archive folder and share with full permissions
PostgreSQL.conf(location:C:\Program Files\PostgreSQL\9.4\data)
wal_level = hot_standby
archive_mode = on
archive_command = archive_command = 'copy %p \\\\10.31.159.199\\archive
%f'
max_wal_senders = 1
wal_keep_segments = 10
pb_hbf.conf
Add...below entry
host replication replication 10.31.159.204/32 trust
Slave:
PostgreSQL.conf:
hot_standby = on
Create recovery.conf(location:C:\Program Files\PostgreSQL\9.4\data) and add below entries
restore_command = 'copy \\\\10.31.159.199\\archive %f %p'
standby_mode = 'on'
primary_conninfo = 'host=10.31.159.199 port=5432 user=postgres password=password'
pb_hbf.conf
Add...below entry
host replication postgres 10.31.159.199/32 md5
Go to master and create a backup
login to postgres and execute the below command
SELECT pg_start_backup('base');
Copy postgres data folder excluding some configuration files from master to slave
stop the postgres backup
SELECT pg_stop_backup();
try to restart the slave postgresservice
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sekhar.venkatesan@emc.com, adrian.klaver@aklaver.com, david.g.johnston@gmail.com, msofen@runbox.com, tgl@sss.pgh.pa.us, anil.mallela@emc.com, pgsql-odbc@postgresql.org
Subject: Re: Need documentation for PostgreSQL Replication support.
In-Reply-To: <F84DE43FDACD4C45AA84E2DA016FAE2F1C66A4A7@MX105CL01.corp.emc.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox