Re: Check server mode (standby / master)

From: raghu ram <raghuchennuru(at)gmail(dot)com>
To: Alexander Perepelica <perepelica(dot)alex(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Check server mode (standby / master)
Date: 2011-08-16 07:56:57
Message-ID: CALnrrJRm92sdOAGF4qBg0SED739ByLsVmGWPCFVJwrfNNAs+Bw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Aug 16, 2011 at 1:16 PM, Alexander Perepelica <
perepelica(dot)alex(at)gmail(dot)com> 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(at)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Torsten Zühlsdorff 2011-08-16 08:54:46 Re: PostgreSQL 'hosting'
Previous Message Alexander Perepelica 2011-08-16 07:46:23 Check server mode (standby / master)