Re: Hot standby and synchronous replication status

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Robert Haas" <robertmhaas(at)gmail(dot)com>, "Dimitri Fontaine" <dfontaine(at)hi-media(dot)com>
Cc: "Heikki Linnakangas" <heikki(dot)linnakangas(at)enterprisedb(dot)com>, "Bruce Momjian" <bruce(at)momjian(dot)us>, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Hot standby and synchronous replication status
Date: 2009-08-13 15:29:09
Message-ID: 4A83EAF50200002500029A18@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> wrote:

> *scratches head*
>
> I don't really know how you COULD pick a safe default location.
> Presumably any location that's in the default postgresql.conf file
> would be under $PGDATA, which kind of defeats the purpose of the
> whole thing. In other words, you're always going to have to move it
> anyway, so why bother with a default that is bound to be wrong?

Well, we want the WAL files to flow in two directions from the
database server so that if either target (or connectivity to it) is
down, the WAL files still flow to the other target. The only sensible
way to do that, as far as we've determined, is to have the archive
script copy to a temporary directory and move to a "publisher"
directory, then have once-a-minute crontab jobs to rsync the directory
to the targets.

We figure that while a WAL file is not more at risk in the publisher
directory than in the pg_xlog directory on the same volume.

The other reason is what I think Greg Smith was mentioning --
simplifying the process of grabbing a usable PITR backup for novice
users. That seems like it has merit.

-Kevin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Boszormenyi Zoltan 2009-08-13 15:55:53 Re: DECLARE doesn't set/reset sqlca after DECLARE cursor
Previous Message Tom Lane 2009-08-13 15:08:44 Re: Alpha 1 release notes