Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 945B12E019B for ; Fri, 28 Dec 2007 12:11:28 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 02233-03 for ; Fri, 28 Dec 2007 12:11:21 -0400 (AST) Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id B59722E0180 for ; Fri, 28 Dec 2007 12:11:21 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-101-79.bk7-dsl.surnet.cl [200.126.101.79]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id lBSGBKhf003488 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 28 Dec 2007 08:11:23 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id E60A247C8C; Fri, 28 Dec 2007 13:11:16 -0300 (CLST) Date: Fri, 28 Dec 2007 13:11:16 -0300 From: Alvaro Herrera To: Kevin Grittner Cc: "David F. Skoll" , Tom Lane , pgsql-admin@postgresql.org Subject: Re: Warm-standby robustness question Message-ID: <20071228161116.GB7821@alvh.no-ip.org> References: <3149.1198004157@sss.pgh.pa.us> <4774C3EA.EE98.0025.0@wicourts.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4774C3EA.EE98.0025.0@wicourts.gov> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Fri, 28 Dec 2007 08:11:23 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/234 X-Sequence-Number: 27751 Kevin Grittner wrote: > >>> On Tue, Dec 18, 2007 at 12:55 PM, in message <3149.1198004157@sss.pgh.pa.us>, > Tom Lane wrote: > > "David F. Skoll" writes: > >> My question is this: If the master database is fairly busy, gets > >> VACUUMed once a day, etc. can we expect the warm standby server > >> to work correctly after days/weeks/months/years of log shipping, > >> or should we periodically take new base backups? > > > > I don't think the time period is at issue. Log-shipping should keep the > > slave a perfect replica of the master (if it doesn't, we have problems > > anyway). > > Except for hint bits. This becomes more of a post-recovery > performance issue as the base backup ages, since they are included > in base backups, but not in WAL files. But hint bits should be replicated on the next full-page-write anyhow, no? -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support