Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bee7g-000334-1G for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Aug 2016 08:10:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bee7e-0003ta-RT for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Aug 2016 08:10:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bee7d-0003sE-EK for pgsql-hackers@postgresql.org; Tue, 30 Aug 2016 08:10:17 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bee7a-0006ig-0C for pgsql-hackers@postgresql.org; Tue, 30 Aug 2016 08:10:15 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id B29BC21C2509; Tue, 30 Aug 2016 11:10:11 +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 fEgrVG4KCDgK; Tue, 30 Aug 2016 11:10:11 +0300 (MSK) Received: from localhost (unknown [192.168.27.1]) by mail.postgrespro.ru (Postfix) with ESMTPSA id 70A2421C2506; Tue, 30 Aug 2016 11:10:11 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1472544611; bh=tUsXswZwFMX1sQA76htDA00S0Gh8Mt+BB2yYp/z1tWI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=beLwqqbNf0UlExsl+WEZ6MZTVIqdnUmK9YFQVv3CFAk6x5mOPA8C6MEW8tZoI/jPp GkxBneRPwamWySMZI4cxG499KwATR7aLJwp1OtOu4sVM1bnLtg9uPw/na5Y4PJ3gtY cJOUWriwfceqEQDyl9/GNskrbOEWnmlNTKBtRJ4E= Date: Tue, 30 Aug 2016 11:08:49 +0300 From: Aleksander Alekseev To: Michael Paquier Cc: Heikki Linnakangas , Tom Lane , PostgreSQL mailing lists Subject: Re: Missing checks when malloc returns NULL... Message-ID: <20160830080849.GA58667@e733> References: <7978.1466516782@sss.pgh.pa.us> <20160829130513.GA8340@e733> <20160829141315.GB8340@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: -3.5 (---) 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 > > The funny part here is that ProcGlobal->allProcs is actually handled, > > but not the two others. Well yes, you are right, we really need to > > fail on FATAL for all of them if ShmemAlloc returns NULL as they > > involve the shmem initialization at postmaster startup. > > And with an actual patch things are better. Currently I can't think of any further improvements. I even would dare to say that patch is Ready for Committer. -- 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