Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYIzh-0003Iu-Px for pgsql-hackers@arkaria.postgresql.org; Tue, 12 May 2020 00:42:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jYIzg-00025x-Ls for pgsql-hackers@arkaria.postgresql.org; Tue, 12 May 2020 00:42:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYIzg-00023O-Er for pgsql-hackers@lists.postgresql.org; Tue, 12 May 2020 00:42:00 +0000 Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jYIze-0001Ex-Ap for pgsql-hackers@postgresql.org; Tue, 12 May 2020 00:41:59 +0000 Received: by mail-qt1-x832.google.com with SMTP id x8so9646862qtr.2 for ; Mon, 11 May 2020 17:41:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-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=UoY3O+J/ZTecU+f4Bu/xzRi9CmAf3xegam0+lu8S4Es=; b=tGbFPlMu/YOFWJghePWCoDoEYn7shf3sz8Fk88ZHmn1JlxcGPuNNff0XjLfwJbA5Ig Tr8S7slUePwk/I794bz1wQ4qRAsUiKTU3JWKUXIJU3AIMToiov1gHVhaIXjfvrbirT3B ebxSwvQvgZ2udytjATxPu3uRQuCH69WIWbN2ERiKWPYu6ZvnqpW7UyEpEC15EgLr+7eu DtsZzXMI4JYPsW6arMclHnXI0+Vjd6AaivZtxzjGfta2l0yj0v2zVf1ddo7Z/4LTFn9i Eq0GKHSNyXQ20+sWB3C5l2CnYnMhLDlTbxx77toZ7DQ55dnhHvYw5qZbosNhP9SC4xAl XOjA== 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=UoY3O+J/ZTecU+f4Bu/xzRi9CmAf3xegam0+lu8S4Es=; b=De+XMiicjbwJk3NF24wGUwOXEDl95lKpM30QR6t7zy1Pcbu9o0MZeL4ILq7cILAX3n rFVbSiL9VPKfTMIw2D6o8O7n1rJgmOXgqGQ2s2JSpZQuiE9v3vpDcFb658QXkBMz6xQG 7GwzmDb++Wb+wNSlAZPMZ8m2o/VXYXgPkR16SpU3flzePzdIepPsgs9n8mvgfytXTHKD OLvnUTBdn4OVEEzX2ABC7tNShUu4sS+FWjJXSzd++gsaXzwt9XSUDk9sjGbRAXYeayJh oC32S4aaBj2WnztPuBgRYbiBT29DNPeHktGEz1txr5cMfSmMhS2UrWpvB+c9kXepezFe sS/Q== X-Gm-Message-State: AGi0PuZFFNw+yBo2q2o2we26k9yXHgqC3L/4rvPsD+/I+iWHii/d3FvQ t8f1bldj21c9Bp1v2m1e7Xhlsw== X-Google-Smtp-Source: APiQypIXrCxTy6ddy4dgSb63NtYCpEy7kuMu8geV9BrzGgdBtrOGqf0DnPbDiqdtN/1B0WgkPqni2w== X-Received: by 2002:aed:2796:: with SMTP id a22mr8025480qtd.134.1589244117414; Mon, 11 May 2020 17:41:57 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id m25sm9975678qkg.83.2020.05.11.17.41.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 May 2020 17:41:56 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 9ECC580092E; Mon, 11 May 2020 19:41:55 -0500 (CDT) Date: Mon, 11 May 2020 19:41:55 -0500 From: Justin Pryzby To: Amit Kapila Cc: Bruce Momjian , PostgreSQL-development Subject: Re: PG 13 release notes, first draft Message-ID: <20200512004155.GP18456@telsasoft.com> References: <20200505031600.GB21752@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, May 11, 2020 at 10:52:41AM +0530, Amit Kapila wrote: > > 1. We have allowed an (auto)vacuum to display additional information > > about heap or index in case of an error in commit b61d161c14 [1]. > > Now, in general, it might not be worth saying much about error > > information but I think this one could help users in case they have > > some corruption. For example, if one of the indexes on a relation has > > some corrupted data (due to bad hardware or some bug), it will let the > > user know the index information, and the user can take appropriate > > action like either Reindex or maybe drop and recreate the index to > > overcome the problem. I'm not opposed to including it, but I think it's still true that the user doesn't need to know in advance that the error message will be additionally helpful in the event of corruption. If we were to include more "error" items, we might also include these: 71a8a4f6e36547bb060dbcc961ea9b57420f7190 Add backtrace support for error reporting 17a28b03645e27d73bf69a95d7569b61e58f06eb Improve the internal implementation of ereport(). 05f18c6b6b6e4b44302ee20a042cedc664532aa2 Added relation name in error messages for constraint checks. 33753ac9d7bc83dd9ccee9d5e678ed78a0725b4e Add object names to partition integrity violations. > One more observation: > > Allow inserts to trigger autovacuum activity (Laurenz Albe, Darafei > Praliaskouski) > This new behavior allows pages to be set as all-visible, which then > allows index-only scans, ... > The above sentence sounds to mean that this feature allows index-only > scans in more number of cases after this feature. Is that what you > intend to say? If so, is that correct? Because I think this will > allow index-only scans to skip "Heap Fetches" in more cases. I think what you mean is that the autovacuum feature, in addition to encouraging the *planner* to choose an indexonly scan, will *also* allow (at execution time) fewer heap fetches for a plan which would have already/previously used IOS. Right ? So maybe it should say "allows OR IMPROVES index-only scans" or "allows plans which use IOS to run more efficiently". Separate from Amit's comment, I suggest to say: | This new behavior allows autovacuum to set pages as all-visible, which then | allows index-only scans, ... ..otherwise it sounds like this feature implemented the concept of "all-visible". -- Justin