Discussion:
PostgreSQL DB Replication
Rajesh K
2014-08-25 04:46:09 UTC
Permalink
Dear Sir,

I have planned to configure  PostgreSQL 9.2.4 database
Master and Slave replication on Redhat Linux Server 6.As per the
documentation i have done the settings on both Master and Slave.I choose
7 simple step binary replication method as per the PostgreSQL website.After DB Synchronization
command I  start the slave and master as per the documentation.After that I am  not able to login as postgres user on slave and not able to change the password of the user postgres.Kindly help me to done
the same .

Thanks & Regards
Rajesh.K/Pramod
Developer

Cochin
8129823272
wd
2014-08-26 04:04:51 UTC
Permalink
What's the output when you try to login? Have your slave configured as a
standby server ?
Post by Rajesh K
Dear Sir,
I have planned to configure PostgreSQL 9.2.4 database Master and Slave
replication on Redhat Linux Server 6.As per the documentation i have done
the settings on both Master and Slave.I choose 7 simple step binary
replication method as per the PostgreSQL website.After DB Synchronization
command I start the slave and master as per the documentation.After that I
am not able to login as postgres user on slave and not able to change the
password of the user postgres.Kindly help me to done the same .
Thanks & Regards
Rajesh.K/Pramod
Developer
Cochin
8129823272
sivananda reddy
2014-08-26 04:45:25 UTC
Permalink
Hi Rajesh

Please share the below information:

1)postgresql.conf file (Both master and slave)
2) database server logs
3)recovery.conf file
4)pg_hba.conf file

With Regards,
Sivananda Reddy
07385114008
Post by wd
What's the output when you try to login? Have your slave configured as a
standby server ?
Post by Rajesh K
Dear Sir,
I have planned to configure PostgreSQL 9.2.4 database Master and Slave
replication on Redhat Linux Server 6.As per the documentation i have done
the settings on both Master and Slave.I choose 7 simple step binary
replication method as per the PostgreSQL website.After DB Synchronization
command I start the slave and master as per the documentation.After that I
am not able to login as postgres user on slave and not able to change the
password of the user postgres.Kindly help me to done the same .
Thanks & Regards
Rajesh.K/Pramod
Developer
Cochin
8129823272
K P Manoj
2014-08-26 05:59:31 UTC
Permalink
Hi Rajesh,

Parameter hot_standby is on on slave server ?. You are trying to change
postgres password on master or slave ?.

Regards
Manoj K P
8050972028
Post by sivananda reddy
Hi Rajesh
1)postgresql.conf file (Both master and slave)
2) database server logs
3)recovery.conf file
4)pg_hba.conf file
With Regards,
Sivananda Reddy
07385114008
Post by wd
What's the output when you try to login? Have your slave configured as a
standby server ?
Post by Rajesh K
Dear Sir,
I have planned to configure PostgreSQL 9.2.4 database Master and Slave
replication on Redhat Linux Server 6.As per the documentation i have done
the settings on both Master and Slave.I choose 7 simple step binary
replication method as per the PostgreSQL website.After DB Synchronization
command I start the slave and master as per the documentation.After that I
am not able to login as postgres user on slave and not able to change the
password of the user postgres.Kindly help me to done the same .
Thanks & Regards
Rajesh.K/Pramod
Developer
Cochin
8129823272
Abdul Sayeed
2014-08-26 13:54:24 UTC
Permalink
Hi Rajesh,

I don't know what error you are getting. Though you can use below
workaround to login and change the password.

Step 1: Open pg_hba.conf file and modify md5 to trust

Step 2: reload the cluster (/opt/PostgreSQL/9.2/bin/pg_ctl -D ../data/
reload)

Step 3: Connect to the database, it should not ask for password:

bash-4.1$ ./psql -p 5435 postgres
psql.bin (9.2.7)
Type "help" for help.

postgres=# \password postgres;
Enter new password:
Enter it again:
postgres=# \q
bash-4.1$ ./psql -p 5435 postgres
Password:
psql.bin (9.2.7)
Type "help" for help.

postgres=#

If the above workaround does not work, please share what error you are
getting.

Hope this helps
.



Thanks & Regards,
Abdul Sayeed
PostgreSQL DBA
Postgres Professional Certified
EnterpriseDB Corp
Skype: abdul.sayeed24
Post by K P Manoj
Hi Rajesh,
Parameter hot_standby is on on slave server ?. You are trying to change
postgres password on master or slave ?.
Regards
Manoj K P
8050972028
Post by sivananda reddy
Hi Rajesh
1)postgresql.conf file (Both master and slave)
2) database server logs
3)recovery.conf file
4)pg_hba.conf file
With Regards,
Sivananda Reddy
07385114008
Post by wd
What's the output when you try to login? Have your slave configured as a
standby server ?
Post by Rajesh K
Dear Sir,
I have planned to configure PostgreSQL 9.2.4 database Master and Slave
replication on Redhat Linux Server 6.As per the documentation i have done
the settings on both Master and Slave.I choose 7 simple step binary
replication method as per the PostgreSQL website.After DB Synchronization
command I start the slave and master as per the documentation.After that I
am not able to login as postgres user on slave and not able to change the
password of the user postgres.Kindly help me to done the same .
Thanks & Regards
Rajesh.K/Pramod
Developer
Cochin
8129823272
Loading...