Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 57FC06848CC for ; Tue, 22 Jun 2010 10:36:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 12332-01-5 for ; Tue, 22 Jun 2010 13:36:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f174.google.com (mail-iw0-f174.google.com [209.85.214.174]) by mail.postgresql.org (Postfix) with ESMTP id EE84B687343 for ; Tue, 22 Jun 2010 09:56:16 -0300 (ADT) Received: by iwn38 with SMTP id 38so868558iwn.19 for ; Tue, 22 Jun 2010 05:56:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:cc :subject:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=KLERO2J0b8xcLywEVIzuQJN+Z3qTN2eG3RdPlEjYT5k=; b=fH0E76uKxF3p1Dt8y6pB7YZlCc4Cp1k7gGO+BSC9G0diazB5IknRO0GZ+tk8guAY+V Ag4DdmULv+2pZdERgfrRzynxHzXysNb6J3aqOySJ0oBc25cddLf86xg7cIWsefEm9TC+ MwEP5udqwpEICVKgIkIueTJoLuf+XTId/06C8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:cc:subject:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=uNhr5XiFh4rFJFDdfGKOx0DAx+IbQ4pp8+c7ruYB8Wba84fr3uTP+4no7VmRfMta1h W3Iv4cDD+VMFMN+/NT7zEOJxKEXLeEC0HRO/q2KV37bnxNFc/DL1PIFaLNT19Ddh7bZq aqsW5pPKBKyLzbZkspH8x2UtK2WIT03LtAc4A= Received: by 10.231.149.143 with SMTP id t15mr7481126ibv.29.1277211374884; Tue, 22 Jun 2010 05:56:14 -0700 (PDT) Received: from eddie (c-67-186-205-129.hsd1.ut.comcast.net [67.186.205.129]) by mx.google.com with ESMTPS id f1sm6945433ibg.15.2010.06.22.05.56.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 22 Jun 2010 05:56:13 -0700 (PDT) Message-ID: <4c20b2ed.0134e70a.19ef.5b22@mx.google.com> Date: Tue, 22 Jun 2010 06:56:11 -0600 From: Joshua Tolley To: Robert Haas Cc: pgsql-docs Subject: Re: hot standby documentation References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Zs/RYxT/hKAHzkfQ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.5 tagged_above=-5 required=5 tests=BAYES_05=-0.5 X-Spam-Level: X-Archive-Number: 201006/49 X-Sequence-Number: 5617 --Zs/RYxT/hKAHzkfQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 21, 2010 at 11:42:03PM -0400, Robert Haas wrote: > I did some editing of the Hot Standby docs tonight; PFA a proposed patch. >=20 > Comments? In general, +1 > + When the parameter is set to true= on a > + standby server, it will begin accepting connections once the recover= y has > + brought the system to a consistent state. All such connections are > + strictly read-only; not even temporary tables may be written. Howev= er, > + the database system may still use temporary work files internally wh= en > + executing queries. I'm not sure it's worth pointing out that the database might still use temp files. It seems an unnecessary level of detail. I realize you're probably putting it here because you've edited that bit out of the docs elsewhere, b= ut I still think it's unnecessary detail. That said, if it has to go somewhere, +1 for this change. =20 > - Queries executed on the standby will be correct with regard to the t= ransactions > - that had been recovered at the start of the query, or start of first= statement > - in the case of serializable transactions. In comparison with the pri= mary, > - the standby returns query results that could have been obtained on t= he primary > - at some moment in the past. > + Queries executed on the standby will see a view of the database that > + existed on the master at some moment in the past. Is it really that non-deterministic? /me admits not having followed that discussion. Although the original version is pretty complex, it gives the u= ser some feel for the particular moment in the past that their snapshot will represent. If the original is incorrect, it would be nice to replace it with something that doesn't suggest the user might end up with a snapshot from l= ast week. =20 =20 > - If cancellation does occur, the query and/or transaction can al= ways > - be re-executed. The error is dynamic and will not necessarily r= eoccur > - if the query is executed again. > + Cancelled queries may be retried immediately (after beginning a new > + transaction, of course). Since query cancellation is depending= on > + the nature of the WAL records being replayed, a query that was > + cancelled may succeed if it is executed again. s/is depending/depends/ -- Joshua Tolley / eggyknap End Point Corporation http://www.endpoint.com --Zs/RYxT/hKAHzkfQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkwgsusACgkQRiRfCGf1UMNO+QCggVWzl8Tn7FdcEg2xwEndWoKe ZTMAoKvx2pBAW+Z+Ke3ZnOw7pfNwXwQa =7REo -----END PGP SIGNATURE----- --Zs/RYxT/hKAHzkfQ--