Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1alV3x-0008RZ-PX for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Mar 2016 05:22:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1alV3x-0003F0-AO for pgsql-bugs@arkaria.postgresql.org; Thu, 31 Mar 2016 05:22:33 +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 1alV3w-0003Dn-HY for pgsql-bugs@postgresql.org; Thu, 31 Mar 2016 05:22:32 +0000 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1alV3p-0003G7-Gh for pgsql-bugs@postgresql.org; Thu, 31 Mar 2016 05:22:32 +0000 Received: by mail-pa0-x232.google.com with SMTP id fe3so58007363pab.1 for ; Wed, 30 Mar 2016 22:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=oBgS7MtpxZCZ/95oq/WWZ9x/H9BTK2i8b1ncKmD6tP4=; b=fHXaJMAT+fSbuLcQ3kF39PCP1Du/zDsGbiG1ZgmSddCxIyx68j7eJZvL7UgwNwMEVQ EP66JmxF4tmBH1mxbCQ09WP5hmecXlPyq3aixJy7x2ko/rfufnic2qoQq0B3GHACO3Qy Ru2kMpXjAcZ991lzaB1Z5KzmfaV6HqGkXglQw= 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-disposition:in-reply-to:user-agent; bh=oBgS7MtpxZCZ/95oq/WWZ9x/H9BTK2i8b1ncKmD6tP4=; b=TQauXS2RERNyIwh9LoBbXcRdD9LAuN4WsoHwVZLmOwQVq/E0a5G0ItXPh9gbS5AeJF bAQdNo9VhrPRK0e9WbLa+d3kVvOiN3JuDN5kT4wmWuqAK8jreh0p8ykI7Xfx+VcFzQ+s Ti4cHG0iSqkKxcZ2crBK6PZgD+HBQdRKpohQRzzTP0xsBuFyQZMT5GtIyNcByew5skTc +i0NVDs7qYvBY8e0q3BTLXURtAnEQQ7wjrjLk7cgBe8oWFTKG0TVXIo1NbiWBXyINCbq cIPVaAERso+6qzBQX7rOejXRSlpj/MR3riZ4CJ2hsuUkFvilTEH0YqPng0cuwSCe0v8D +ARA== X-Gm-Message-State: AD7BkJKeSfRRXptLRjj8bmu9jHdx+Z3002VDqXcvIc9WSpn8oCWqbNjCBbrRalpE1Q1AAQ== X-Received: by 10.66.90.226 with SMTP id bz2mr19278902pab.31.1459401743318; Wed, 30 Mar 2016 22:22:23 -0700 (PDT) Received: from tornado.leadboat.com (c-98-248-47-228.hsd1.ca.comcast.net. [98.248.47.228]) by smtp.gmail.com with ESMTPSA id h19sm9784937pfh.43.2016.03.30.22.22.22 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Mar 2016 22:22:22 -0700 (PDT) Date: Thu, 31 Mar 2016 01:22:20 -0400 From: Noah Misch To: Andres Freund Cc: Robert Haas , Michael Paquier , Haribabu Kommi , Thom Brown , pgsql-bugs , Fabien COELHO , pgsql-hackers@postgresql.org Subject: Re: Breakage with VACUUM ANALYSE + partitions Message-ID: <20160331052220.GA1504920@tornado.leadboat.com> References: <20160326123942.qnuwqg3yg2y7ae4p@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160326123942.qnuwqg3yg2y7ae4p@alap3.anarazel.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Sat, Mar 26, 2016 at 01:39:42PM +0100, Andres Freund wrote: > On 2016-03-25 12:02:05 -0400, Robert Haas wrote: > > Gosh, that's surprising. I wonder if that just revealed an underlying > > issue rather than creating it. > > I think that's the case; it's just somewhat unlikely to hit in other > cases. > > If SMgrRelation->md_fd[n] is an empty relation, and mdread() or another > routine is asking for a block in the second segment - which will error > out. But even if the first segment is zero bytes, _mdfd_getseg() will > dutifully try to open the second segment. Which will succeed in the case > of a truncated relation, because we leave the truncated segment in > place. > > ISTM that _mdfd_getseg better check the length of the last segment > before opening the next one? [This is a generic notification.] The above-described topic is currently a PostgreSQL 9.6 open item. Andres, since you committed the patch believed to have created it, you own this open item. If that responsibility lies elsewhere, please let us know whose responsibility it is to fix this. Since new open items may be discovered at any time and I want to plan to have them all fixed well in advance of the ship date, I will appreciate your efforts toward speedy resolution. Please present, within 72 hours, a plan to fix the defect within seven days of this message. Thanks. Non-generic addendum: granted, s/created/unearthed/ is looking more precise. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs