Re: History of WAL_LEVEL (archive vs hot_standby)

From: David Johnston <polobo(at)yahoo(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: History of WAL_LEVEL (archive vs hot_standby)
Date: 2014-03-27 22:06:02
Message-ID: 1395957962819-5797720.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

shamccoy wrote
> Hello. I've been doing some benchmarks on performance / size differences
> between actions when wal_level is set to either archive or hot_standby.
> I'm not seeing a ton of difference. I've read some posts about
> discussions as to whether this parameter should be simplified and remove
> or merge these 2 values.
>
> I'd like to understand the historic reason between have the extra
> "hot_standby" value. Was it to introduce replication and not disturb the
> already working "archive" value? If I'm new to Postgres, is there any
> strategic reason to use "archive" at this point if replication is
> something I'll be using in the future? I'm not seeing any downside to
> "hot_standby" unless I'm missing something fundamental.
>
> Thanks,
> Shawn

There is a semantic difference in that "archive" is limited to "wal
shipping" to a dead-drop area for future PITR. "hot_standby" implies that
the wal is being sent to another running system that is immediately reading
in the information to maintain an exact live copy of the master.

As I think both can be used for PITR I don't believe there is much downside,
technically or with resources, to using hot_standby instead of archive; but
I do not imagine it having any practical benefit either.

David J.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/History-of-WAL-LEVEL-archive-vs-hot-standby-tp5797717p5797720.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sergey Konoplev 2014-03-27 22:26:48 Re: Cube extension kNN support
Previous Message shamccoy 2014-03-27 21:24:13 History of WAL_LEVEL (archive vs hot_standby)