Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hrok4-0005tA-KW for pgsql-hackers@arkaria.postgresql.org; Sun, 28 Jul 2019 19:22:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hrok3-0000oW-EQ for pgsql-hackers@arkaria.postgresql.org; Sun, 28 Jul 2019 19:21:59 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hrok3-0000oO-20 for pgsql-hackers@lists.postgresql.org; Sun, 28 Jul 2019 19:21:59 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hrok0-0003N5-As for pgsql-hackers@postgresql.org; Sun, 28 Jul 2019 19:21:58 +0000 Received: by mail-wm1-x341.google.com with SMTP id f17so51590716wme.2 for ; Sun, 28 Jul 2019 12:21:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zUFQRPQRP0nDpcfpZpfrR5d+f9xdhD4u8dbHv869EQ0=; b=wyU6WLQ6f4cZiso1WZcNhRlCCYViqGS8Jw1hUj8J2m+IIjI5TOW00kdhwJOJKm3BWu Xw4hukWx7F4U9lFftCIKZ4LaGIzjcfPWvB6vYHIjdBp9uaSnefxzV2BJFCiP0hi9n/n8 wjcM2Iyv5hBQrmNNTJXVAyNh7bd+uaU0aBumg5Xz4Ma0MaMiICdfRvaiiQ8a0ln3qDxP 0JYim33D8XJ//WVJ3lN1iLZ8rgmhqOusAFhEtnhlew0sE0E5uF9KGtfJEpKsuIcJQPr8 R1ir7PdRCDX6goSctD5QQ5MtvQ4UftGd9MwJdOGXNRYUP/7q2oeNt90HX66dRdczYEpc 5wZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zUFQRPQRP0nDpcfpZpfrR5d+f9xdhD4u8dbHv869EQ0=; b=i7ox5QpJ0f5n1GKeNuY0doRmaGOUgjWu5efwu5AXbJnAQbpQl/FE2KJtiAZsmoOTMQ MsiNGe+u8RM5lSg20YKgr5ewZRK3Sbtxg7XpPfo129x0q/NBAqfDmO8jgO9pvAyM0a2t Ok40eE9FlpZIz6AdMX3yY2YkyOorkQSzTS0GNKVj95Ycg4Wm6clt8G4Yoo/+Vmptjzre y/L0r4ta7n8sIgYO/h9LJHkAy7vp05Nr10+vOmXmzx/mVhhlV0g3fyChe2XNhs7Wovmg p+pIPg2LpAhYpOhX3e064OXyfPTCJB8CkggYBoh2REKkq8T6Xo6+MPwY+B7qiqXEb2aB 1Wmg== X-Gm-Message-State: APjAAAWjMSZhm58CFxrhjsaXCZdhILO51coCBnUb11iQ2MfnT/TYXzJ8 wR+8NgBoiYl36XQtv8FYgI0/6Q== X-Google-Smtp-Source: APXvYqzXY6e0lOzH1e1Xfvg+PZ4l9jEjmiEBb6PruNpKfUMcoz/cf0qDPjz8KOMQo2lsKlGjeeu6+A== X-Received: by 2002:a1c:18d:: with SMTP id 135mr95413775wmb.171.1564341713439; Sun, 28 Jul 2019 12:21:53 -0700 (PDT) Received: from localhost (ip-86-49-253-160.net.upcbroadband.cz. [86.49.253.160]) by smtp.gmail.com with ESMTPSA id z6sm52975764wrw.2.2019.07.28.12.21.52 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 28 Jul 2019 12:21:52 -0700 (PDT) Date: Sun, 28 Jul 2019 21:21:51 +0200 From: Tomas Vondra To: Andres Freund Cc: Justin Pryzby , Tomas Vondra , Dean Rasheed , pgsql-hackers@postgresql.org Subject: Re: ANALYZE: ERROR: tuple already updated by self Message-ID: <20190728192151.wktk6htdixsjpt6x@development> References: <20190618231233.GA27470@telsasoft.com> <20190618234858.GK16019@telsasoft.com> <20190619000837.awy6j7h45ahd4vop@alap3.anarazel.de> <20190723200127.moumhmj3z4b4dohg@alap3.anarazel.de> <20190728101520.da5nptiftmsnmv7c@development> <20190728164244.44eskwbamhlj6umf@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190728164244.44eskwbamhlj6umf@alap3.anarazel.de> User-Agent: NeoMutt/20180716-1444-295967 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sun, Jul 28, 2019 at 09:42:44AM -0700, Andres Freund wrote: >Hi, > >On 2019-07-28 12:15:20 +0200, Tomas Vondra wrote: >> Attached is a patch fixing the error by not building extended stats for >> the inh=true case (as already proposed in this thread). That's about the >> simplest way to resolve this issue for v12. It should add a simple >> regression test too, I guess. > >Doesn't this also apply to v11? > AFAICS it applies to 10+ versions, because that's where extended stats were introduced. We certainly can't mess with catalogs there, so this is about the only backpatchable fix I can think of. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services