Re: streaming replication question

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: Rajesh Kumar Mallah <mallah(dot)rajesh(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: streaming replication question
Date: 2010-10-05 08:38:47
Message-ID: AANLkTinyCa6DEZUbB7ABTsbYUr6o3Y=vne_p_YnOyN2_@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Tue, Oct 5, 2010 at 4:04 PM, Rajesh Kumar Mallah
<mallah(dot)rajesh(at)gmail(dot)com> wrote:
>> > I am currently aiming to setup only SR  between 2 servers only.
>>
>> "only SR" means that you don't need Hot Standby (i.e., you don't need to
>> run any query on the standby server)? If so, you can set wal_level to
>> archive instead of hot_standby, and disable hot_standby parameter on the
>> standby.
>
> Thanks for the kind replies,
> May be I am mistaken in understanding of the terms. I do issue read only
> queries to the standby server. So I think its HS. But I also stream the
> wal records.

SR is capability to stream WAL records from the master to the standby and
keep the database on the standby up to date by applying the WAL records.
HS is capability to allow us to run read-only queries on the standby.
You seem to need both SR and HS. So you don't need to change wal_level and
hot_standby parameters.

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Simon Riggs 2010-10-05 09:08:00 Re: streaming replication question
Previous Message AI Rumman 2010-10-05 08:21:40 Query tune, index is not using

Browse pgsql-hackers by date

  From Date Subject
Next Message Dean Rasheed 2010-10-05 08:47:52 Re: wip: functions median and percentile
Previous Message Simon Riggs 2010-10-05 08:32:46 Sync Rep at Oct 5