Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arYhb-00030U-7C for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Apr 2016 22:28:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1arYha-0000H8-3T for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Apr 2016 22:28:30 +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 1arYhY-0000EO-T1 for pgsql-bugs@postgresql.org; Sat, 16 Apr 2016 22:28:28 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1arYhV-00072I-Th for pgsql-bugs@postgresql.org; Sat, 16 Apr 2016 22:28:28 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C84D6207F3 for ; Sat, 16 Apr 2016 18:28:24 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Sat, 16 Apr 2016 18:28:24 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=iej1kpV9jhBzCF6YUHKhnKvyCLo=; b=R5Gde DAOgHNNRklRkKOvM+kwO0wpUt5sA3GPa8IFGfM9C54mdJUHFZscsPv+6ZPxz93zy afCGGpoLhKcWnJ+iLY8IHMsLdWFsjQdb2j4fyXHQlkipUb/LlrB9VfCKcux2CQMr et/iky/fj3dIYefwbpWgnWmBCVIN59ZTJd1ajs= X-Sasl-enc: RMGrDGSBCdgbUCI71X1qE4VcU+RFSg/9F7ljQF1pI0gt 1460845704 Received: from intern.anarazel.de (unknown [192.77.237.104]) by mail.messagingengine.com (Postfix) with ESMTPA id 5F9A36801C2; Sat, 16 Apr 2016 18:28:24 -0400 (EDT) Date: Sat, 16 Apr 2016 15:28:23 -0700 From: Andres Freund To: Noah Misch 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: <20160416222823.auk3azpdlh232ocj@alap3.anarazel.de> References: <20160326123942.qnuwqg3yg2y7ae4p@alap3.anarazel.de> <20160411165054.r35o4fjicdg4avs7@alap3.anarazel.de> <20160411171742.n5xebjt7tcdy4sxf@alap3.anarazel.de> <20160416222301.GA1913058@tornado.leadboat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160416222301.GA1913058@tornado.leadboat.com> X-Pg-Spam-Score: -2.6 (--) 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 2016-04-16 18:23:01 -0400, Noah Misch wrote: > On Tue, Apr 12, 2016 at 09:00:57AM -0400, Robert Haas wrote: > > On Mon, Apr 11, 2016 at 1:17 PM, Andres Freund wrote: > > > I can think of a number of relatively easy ways to address this: > > > 1) Just zap (or issue?) all pending flush requests when getting an > > > smgrinval/smgrclosenode > > > 2) Do 1), but filter for the closed relnode > > > 3) Actually handle the case of the last open segment not being > > > RELSEG_SIZE properly in _mdfd_getseg() - mdnblocks() does so. > > > > > > I'm kind of inclined to do both 3) and 1). > > Andres, you own the underlying open item, right? Right. > Do you plan to implement this fix you have outlined? If so, when? Yes, I plan to next week. - Andres -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs