Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id D78A2632563 for ; Fri, 12 Feb 2010 06:09:52 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 85819-03 for ; Fri, 12 Feb 2010 10:09:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gx0-f218.google.com (mail-gx0-f218.google.com [209.85.217.218]) by mail.postgresql.org (Postfix) with ESMTP id 35B266323A4 for ; Fri, 12 Feb 2010 06:09:42 -0400 (AST) Received: by gxk10 with SMTP id 10so2089210gxk.3 for ; Fri, 12 Feb 2010 02:09:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=LoLQ+88HhEyrjLiatAtOzaYURtrdWbiV+9DWYD1ZBnc=; b=PhCSg8WmS471wvkR3Q50gVwfPSabd3CIo3QXO7TQx2lxkiFwXxs/lDZlQ/L8gg0Ypa u+esxjLb1CarQktQM4MD/WZrNP715cpikvouhl8sLDipcSzd10enCyndsL35Earz6wDk c/jmdD4XkiNrSFebGP9oS/8CR3ip5O13g45pk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=uBT/V0TXjDb+/X28pVMKFY+XA1GotDfkNTfaMymF7N1l2qmUZsrVy0jJ6GULOidfgg psBGflVB1+cmbFIAgBQnQpv+TSE3JcLBulPR0ucciZbCmdH3PTlrVsOK4K3UIAk5RGy9 mNrJ2GwzruluGCdpm9njsOJPxOO2U5WLIog30= MIME-Version: 1.0 Received: by 10.101.129.1 with SMTP id g1mr1725024ann.28.1265969380197; Fri, 12 Feb 2010 02:09:40 -0800 (PST) In-Reply-To: <4B751BEA.7000202@enterprisedb.com> References: <4B751BEA.7000202@enterprisedb.com> Date: Fri, 12 Feb 2010 19:09:40 +0900 Message-ID: <3f0b79eb1002120209i3afd935exd2e875ac11df19d7@mail.gmail.com> Subject: Re: Streaming Replication docs From: Fujii Masao To: Heikki Linnakangas Cc: PostgreSQL-development Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.112 tagged_above=-10 required=5 tests=AWL=-0.274, BAYES_00=-2.599, FS_REPLICA=1.041, SARE_SPEC_REPLICA=0.72 X-Spam-Level: X-Archive-Number: 201002/998 X-Sequence-Number: 157341 On Fri, Feb 12, 2010 at 6:14 PM, Heikki Linnakangas wrote: > So the new layout would be: > > III. Server Administration > > =A0 =A0... > =A0 =A021. Managing Databases > =A0 =A022. Localization > =A0 =A023. Routine Database Maintenance Tasks > =A0 =A024. Backup and Restore > =A0 =A025. High Availability, Load Balancing, and Replication > * =A0 =A026. Recovery Configuration * > =A0 =A027. Monitoring Database Activity > =A0 =A028. Monitoring Disk Usage > =A0 =A029. Reliability and the Write-Ahead Log > =A0 =A030. Regression Tests > > Thoughts, better ideas? +1 > Another change I'd like to make is to document the new built-in way (ie. > standby_mode=3D'on', restore_command=3D'cp ...', primary_conninfo not set= ) > as the primary way of implementing file-based log shipping. Using > pg_standby or similar scripts that do the waiting would still be > documented, but I'd like to de-emphasize it, moving it into an > "Alternative way to implement File-based log shipping" section. The > description would go along the lines of "An alternative way to implement > File-based log shipping is to leave standby_mode=3D'false', and use a > restore_command that waits until the next WAL file arrives. This offers > more flexibility and control over the process. ..." +1 We might need to add the following code of pg_standby into the core, to prefer it for many cases. > #ifdef WIN32 > > /* > * Windows 'cp' sets the final file size before the copy is > * complete, and not yet ready to be opened by pg_standby. So we > * wait for sleeptime secs before attempting to restore. If that > * is not enough, we will rely on the retry/holdoff mechanism. > * GNUWin32's cp does not have this problem. > */ > pg_usleep(sleeptime * 1000000L); > #endif Regards, --=20 Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center