Search Postgresql Archives

Re: Check server mode (standby / master)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Tue, Aug 16, 2011 at 1:16 PM, Alexander Perepelica <perepelica.alex@xxxxxxxxx> wrote:
Hello!

How can I check which mode has a sever: master or slave (standby) after I setup replication?


You can check the mode of the server using "pg_controldata".

[pgsql@test~]$ pg_controldata /usr/local/pgsql/data84/

Database cluster state:               in archive recovery   --> This is Standby  Database

Database cluster state:               in production  --> This is Production Database [Master]

--Raghu Ram

 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux