Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 602C9632684 for ; Tue, 27 Jan 2009 10:10:04 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 96306-02 for ; Tue, 27 Jan 2009 10:09:56 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og105.obsmtp.com (exprod7og105.obsmtp.com [64.18.2.163]) by mail.postgresql.org (Postfix) with SMTP id 6BC8A632683 for ; Tue, 27 Jan 2009 10:09:56 -0400 (AST) Received: from source ([66.249.90.179]) by exprod7ob105.postini.com ([64.18.6.12]) with SMTP ID DSNKSX8VsuO2UHLZgaC1xlFeOey34WrM0Mhx@postini.com; Tue, 27 Jan 2009 06:09:56 PST Received: by ik-out-1112.google.com with SMTP id b35so1051690ika.0 for ; Tue, 27 Jan 2009 06:09:53 -0800 (PST) Received: by 10.210.76.4 with SMTP id y4mr5634172eba.11.1233065393515; Tue, 27 Jan 2009 06:09:53 -0800 (PST) Received: from ?88.195.102.92? (dsl-hkibrasgw2-ff66c300-92.dhcp.inet.fi [88.195.102.92]) by mx.google.com with ESMTPS id f6sm29144828nfh.39.2009.01.27.06.09.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Jan 2009 06:09:52 -0800 (PST) Message-ID: <497F15AF.1040800@enterprisedb.com> Date: Tue, 27 Jan 2009 16:09:51 +0200 From: Heikki Linnakangas Organization: EnterpriseDB User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: Alvaro Herrera CC: Simon Riggs , Tom Lane , PostgreSQL-development Subject: Re: [PATCHES] Infrastructure changes for recovery References: <1218109459.4549.423.camel@ebony.2ndQuadrant> <1220213074.4371.173.camel@ebony.2ndQuadrant> <1905.1220895241@sss.pgh.pa.us> <1221080797.3913.768.camel@ebony.2ndQuadrant> <20080912181421.GI8854@alvh.no-ip.org> <1221245766.3913.1130.camel@ebony.2ndQuadrant> <20080912193144.GJ8854@alvh.no-ip.org> In-Reply-To: <20080912193144.GJ8854@alvh.no-ip.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200901/2049 X-Sequence-Number: 132693 (replying to a very old message, since I just bumped into this in review) Alvaro Herrera wrote: > Simon Riggs wrote: >> On Fri, 2008-09-12 at 14:14 -0400, Alvaro Herrera wrote: >>> Simon Riggs wrote: >>> >>>> --- 5716,5725 ---- >>>> CheckpointStats.ckpt_sync_end_t, >>>> &sync_secs, &sync_usecs); >>>> >>>> ! elog(LOG, "%s complete: wrote %d buffers (%.1f%%); " >>>> "%d transaction log file(s) added, %d removed, %d recycled; " >>>> "write=%ld.%03d s, sync=%ld.%03d s, total=%ld.%03d s", >>>> + (checkpoint ? " checkpoint" : "restartpoint"), >>>> CheckpointStats.ckpt_bufs_written, >>>> (double) CheckpointStats.ckpt_bufs_written * 100 / NBuffers, >>>> CheckpointStats.ckpt_segs_added, >>> Very minor nit: this really needs a rework. >> All I changed was the word "restartpoint"... its otherwise identical to >> existing message. I'd rather not change that. > > The new message is not translatable, the original was. Doesn't really matter since it's an elog(), not ereport(). -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com