Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFmEs-0000tS-LA for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Jul 2015 16:42:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZFmEr-0005dM-Vh for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Jul 2015 16:42:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZFmEr-0005dG-Gc for pgsql-hackers@postgresql.org; Thu, 16 Jul 2015 16:42:25 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZFmEi-0002oG-I6 for pgsql-hackers@postgresql.org; Thu, 16 Jul 2015 16:42:24 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [92.255.15.69]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id CE866400DC7; Thu, 16 Jul 2015 09:42:09 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 44D5CD09; Thu, 16 Jul 2015 20:42:07 +0400 (SAMT) Date: Thu, 16 Jul 2015 19:42:07 +0300 From: Alvaro Herrera To: Robert Haas Cc: Fujii Masao , Amit Kapila , Andrew Dunstan , PostgreSQL-development Subject: Re: Re: [COMMITTERS] pgsql: Map basebackup tablespaces using a tablespace_map file Message-ID: <20150716164207.GP2301@postgresql.org> References: <20150702141409.GL3289@postgresql.org> 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-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas wrote: > On Thu, Jul 16, 2015 at 9:41 AM, Fujii Masao wrote: > > Here are some minor comments: > > > > + ereport(LOG, > > + (errmsg("ignoring \"%s\" file because no > > \"%s\" file exists", > > + TABLESPACE_MAP, BACKUP_LABEL_FILE), > > + errdetail("could not rename file \"%s\" to > > \"%s\": %m", > > + TABLESPACE_MAP, TABLESPACE_MAP_OLD))); > > > > WARNING is better than LOG here because it indicates a problematic case? > > No, that's not the right distinction. Remember that, when sending > messages to the client, WARNING > LOG, and when sending messages to > the log, LOG > WARNING. So messages that a user is more likely to > care about than the administrator should be logged at WARNNG; those > that the administrator is more likely to care about should be LOG. I > think LOG is clearly the appropriate thing here. Right. Now that we have errors marked with criticality, it will be pretty obvious what message is indicating a system problem rather than just a problem that can be ignored without taking any action. ... oh, actually we don't have the criticality marking yet, do we. I think we need to fix that at some point. (Some guys have said to grep the log for certain SQLSTATE codes, but, uh, really?) -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers