Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bnNDM-0000IA-Qk for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Sep 2016 09:56:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bnNDL-0002gs-VI for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Sep 2016 09:56:16 +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_2) (envelope-from ) id 1bnNDK-0002fn-HP for pgsql-hackers@postgresql.org; Fri, 23 Sep 2016 09:56:14 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bnNDD-0003ct-Is for pgsql-hackers@postgresql.org; Fri, 23 Sep 2016 09:56:13 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id C56EE21C3364; Fri, 23 Sep 2016 12:56:06 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Received: from mail.postgrespro.ru ([127.0.0.1]) by localhost (mail.postgrespro.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 43egskp9iDqv; Fri, 23 Sep 2016 12:56:06 +0300 (MSK) Received: from localhost (unknown [192.168.27.1]) by mail.postgrespro.ru (Postfix) with ESMTPSA id 8658221C328A; Fri, 23 Sep 2016 12:56:06 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1474624566; bh=opIw2KSqVRWJqLqsYFOIc10s1Xbs6py7Ztc5KGNkcOQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ECsHAXDsOjhJiw2mEeciTR+/iTGhJDcdbeWx2LohRTwHMnnXCBGfdBsSQxRT0glyu 3prR0RiH/f1zGWK1vsCJRU+iKiMdMXBKIXA2fDS/WdT92IfjzU9bPaXwNfCQMYeTpc F4C72QRYBcS3z1GBp2ypMGhaen9GkXx1SazZxn1U= Date: Fri, 23 Sep 2016 12:54:31 +0300 From: Aleksander Alekseev To: Michael Paquier Cc: PostgreSQL Hackers Subject: Re: [PATCH] Remove redundant if clause in standbydesc.c Message-ID: <20160923095431.GD1238@e733> References: <20160923090814.GB1238@e733> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-Pg-Spam-Score: -5.1 (-----) 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 > > Very simple small patch - see attachment. > > /* not expected, but print something anyway */ > else if (msg->id == SHAREDINVALRELMAP_ID) > - appendStringInfoString(buf, " relmap"); > - else if (msg->id == SHAREDINVALRELMAP_ID) > appendStringInfo(buf, " relmap db %u", msg->rm.dbId); > > Looking at inval.c, dbId can be InvalidOid. Frankly I'm not very familiar with this part of code. InvalidOid is just zero. Does it create some problem in this case? -- Best regards, Aleksander Alekseev -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers