Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YuOOl-0004oy-Ty for pgsql-committers@arkaria.postgresql.org; Mon, 18 May 2015 17:00:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YuOOk-00054v-Qh for pgsql-committers@arkaria.postgresql.org; Mon, 18 May 2015 17:00:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YuOOc-0004sc-JV for pgsql-committers@postgresql.org; Mon, 18 May 2015 17:00:06 +0000 Received: from mail-qk0-f179.google.com ([209.85.220.179]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YuOOY-0001gN-Ag for pgsql-committers@postgresql.org; Mon, 18 May 2015 17:00:05 +0000 Received: by qkgx75 with SMTP id x75so113489302qkg.1 for ; Mon, 18 May 2015 09:59:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=IUhkJkzCywZ1xQoSydvAitEGIch1NnNbmsxPn2F0EW4=; b=FsdTV5q0lOZmLnygokZCO9Vke7QrwOug1GjIwHo6iB3hn6GMIkGKVIMqn7lcSgGL41 JkO+Azpp+9DMWe1u9N91tBsrO2MdD7QVg68cDIkkr01ZOMWDMlWVcnxP7EWzaxP3vSNI EenmAxXDmgDuhqzo3eUTDMxoJ3/dp/zYUqXOAy+TqzMcEdErPhD5OkyRmAnG0mG9YOar rkJ5zJfpfSyNd8KBfrmJmXcpZx52Alb5i5HgwKlBLa1LR3A1XH5eUcStszN48dMg8/wz 7e2Bf8B/HtEPJ8UTz6yJJKH7S3LKAZ4SoFyhXW5ARKYut3eM5aqmi+i0xmhnPGLGRSCF nP9A== X-Gm-Message-State: ALoCoQmp/gsFohfGV9mA37yPRnug0xpJYYGGv81Ey/w3CTFa2H+/B+YIV3t1YCzynI0veEU36V5V X-Received: by 10.140.233.82 with SMTP id e79mr16352173qhc.83.1431968399494; Mon, 18 May 2015 09:59:59 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([181.43.8.141]) by mx.google.com with ESMTPSA id i129sm6735495qhc.36.2015.05.18.09.59.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 May 2015 09:59:58 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id E32FB2112; Mon, 18 May 2015 14:00:38 -0300 (CLT) Date: Mon, 18 May 2015 14:00:38 -0300 From: Alvaro Herrera To: Robert Haas Cc: Tom Lane , Bruce Momjian , pgsql-committers Subject: Re: pgsql: Recursively fsync() the data directory after a crash. Message-ID: <20150518170038.GQ2523@alvh.no-ip.org> References: <555943FB.8090703@gmx.net> <14375.1431961473@sss.pgh.pa.us> <20913.1431965703@sss.pgh.pa.us> <20150518162201.GF9458@momjian.us> <21592.1431967153@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Robert Haas wrote: > On Mon, May 18, 2015 at 12:39 PM, Tom Lane wrote: > >> Uh, doesn't that change the translated strings? Is that a problem? > > > > Better an untranslated message than a translated one that lacks critical > > info. But anyway, there are likely other instances of that same string > > *with* %m ... > > Probably not, because of the way the message is worded. But we could do this: > > diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c > index 6fa75d1..bed8478 100644 > --- a/src/backend/storage/file/fd.c > +++ b/src/backend/storage/file/fd.c > @@ -2461,7 +2461,7 @@ pre_sync_fname(char *fname, bool isdir) > > if (fd < 0) > ereport(FATAL, > - (errmsg("could not open file \"%s\" > before fsync", > + (errmsg("could not open file \"%s\": %m", > fname))); > > pg_flush_data(fd, 0, 0); > > Does that sound good? +1. It's not like the extra two words of context would be of much use anyway. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers