Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a8Au3-0008LQ-3N for pgsql-committers@arkaria.postgresql.org; Sun, 13 Dec 2015 17:57:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a8Au2-0000WH-H6 for pgsql-committers@arkaria.postgresql.org; Sun, 13 Dec 2015 17:57:46 +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 1a8Atp-0000Ip-6T for pgsql-committers@postgresql.org; Sun, 13 Dec 2015 17:57:33 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1a8Atm-0005Is-FI for pgsql-committers@postgresql.org; Sun, 13 Dec 2015 17:57:32 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 1EB27860002; Sun, 13 Dec 2015 18:57:28 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p54BEB434.dip0.t-ipconnect.de [84.190.180.52]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 56496860001; Sun, 13 Dec 2015 18:57:26 +0100 (CET) Received: by anarazel.de (Postfix, from userid 1000) id D160D101A51; Sun, 13 Dec 2015 18:57:25 +0100 (CET) Date: Sun, 13 Dec 2015 18:57:25 +0100 From: Andres Freund To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Fix bug leading to restoring unlogged relations from empty files Message-ID: <20151213175725.GY14789@awork2.anarazel.de> References: <27390.1450028238@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27390.1450028238@sss.pgh.pa.us> X-Pg-Spam-Score: -4.2 (----) 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 On 2015-12-13 12:37:18 -0500, Tom Lane wrote: > Andres Freund writes: > > Fix bug leading to restoring unlogged relations from empty files. > > Coverity thinks, quite correctly AFAICS, that this line you wrote in > FlushOneBuffer() is useless: > > LWLockHeldByMe(bufHdr->content_lock); > > Perhaps you meant > > Assert(LWLockHeldByMe(bufHdr->content_lock)); > Yes :(. I'll be back at my computer in a couple hours and will fix it then or tomorrow morning. Andres -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers