Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arYcT-0002hC-U2 for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Apr 2016 22:23:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1arYcT-0004uC-Fq for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Apr 2016 22:23:13 +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 1arYcS-0004rw-Et for pgsql-bugs@postgresql.org; Sat, 16 Apr 2016 22:23:12 +0000 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1arYcL-0007N0-Ql for pgsql-bugs@postgresql.org; Sat, 16 Apr 2016 22:23:11 +0000 Received: by mail-pa0-x236.google.com with SMTP id zm5so66384895pac.0 for ; Sat, 16 Apr 2016 15:23:05 -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=C5uYbJlwdUsuFSmt83VS3ex9XF+yehG8KoTVNgXdmyY=; b=ZiBHAP2s42DJFXvumodHiqGkxKL2Q4cB4DyKvhtWeOKPE0phSpsspiqOieiB9GuC1A 0tQp4ZdsmJ1yuy8rJVrYGM9jVuyMgqgY7YHGkxwvFRTGOpz340Sn1K6S2SAvsdr4uuZZ 2m6lJK946Eh184lXf4YfvJXwqKz5Oj0NAz+Ro= 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=C5uYbJlwdUsuFSmt83VS3ex9XF+yehG8KoTVNgXdmyY=; b=ewvA2MxUW58XCxNY/uZwTmJtPdA+ITApwTQA2VTN2LFtU5TxhPEzCaXhGrVEDZb3Nu jBvkouMKcKmQ3//ThW2PCienaIvwwhbrslEW4m9z6EkdgP4UnOAOnC5MmuZ8g+Veupmt Uzrv3FHigQFs546rWttMPsI3Uao1FpDEIhuIobc8XrEBRKUmCvoTeey8G5nwnAexyg3Q 6c87PkX5TBh9qtYtNeQlHnNjxCxiSsGJ7Xsz7De9f/qvkX1y+pgFQNPXK92b+RnJCrqF e26PlOafFl9z2XN69BNws91CY7IF5DLqw5XV6FbYBeX25iG+bF5AFDXQeRgDX/HSS9Pd JXww== X-Gm-Message-State: AOPr4FWyxFcekzrO7uZzbdYSooJO+8KY9vLfIsZ3VnW1XXHqgfrPJpS0SrJMFOUxRaT50w== X-Received: by 10.66.232.4 with SMTP id tk4mr39697726pac.103.1460845384232; Sat, 16 Apr 2016 15:23:04 -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 f66sm73594669pff.8.2016.04.16.15.23.02 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 16 Apr 2016 15:23:03 -0700 (PDT) Date: Sat, 16 Apr 2016 18:23:01 -0400 From: Noah Misch To: Andres Freund , Robert Haas Cc: Michael Paquier , Haribabu Kommi , Thom Brown , pgsql-bugs , Fabien COELHO , "pgsql-hackers@postgresql.org" Subject: Re: Breakage with VACUUM ANALYSE + partitions Message-ID: <20160416222301.GA1913058@tornado.leadboat.com> References: <20160326123942.qnuwqg3yg2y7ae4p@alap3.anarazel.de> <20160411165054.r35o4fjicdg4avs7@alap3.anarazel.de> <20160411171742.n5xebjt7tcdy4sxf@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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? Do you plan to implement this fix you have outlined? If so, when? > #3 seems like it's probably about 15 years overdue, so let's do that anyway. > > I don't quite understand why #1 fixes the problem - not because I > doubt you, but just because I haven't studied it much. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs