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.92) (envelope-from ) id 1jGIGV-0003Qz-5X for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Mar 2020 08:16:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jGIGR-0008Fy-Ui for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Mar 2020 08:16:51 +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 1jGIGR-0008Fr-HX for pgsql-hackers@lists.postgresql.org; Mon, 23 Mar 2020 08:16:51 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jGIGJ-0005ns-Vs for pgsql-hackers@postgresql.org; Mon, 23 Mar 2020 08:16:50 +0000 Received: by mail-qk1-x741.google.com with SMTP id b62so4997783qkf.6 for ; Mon, 23 Mar 2020 01:16:43 -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=Paj8WtE1QVOBiBacZSDh4Ia5GCdw6kLO7Fg8izJle6g=; b=Bc1IWI5qy+93ChBcjkSv4zlTJNxKHAfNdookTYvSYHvGd9vS2aXzh1QZ1mG1SRjf2k VgW/PyvaaX2jsQGtGI6ZU06rP7dQG+gO3b1SKgrF4cZG9Me6T3Op+3wg1AtJLenJEpyu Sj5zoz6ohclJRzkqWG2soaSaAGTMCI5J6DoGXgkIhsYxKnmaa5ggHEFxagYVkJ8C96Sg obT0s1wsyTWYf7elcEkU7UY8zvesjP2ZYGHB1o1j+vrOQ7BVk4rxDvDFol+/qTzS291H 8GhRx6kBzKyAAd8K3iCHD4UHEkzm1vscgcA2xzO/ev1pWz0E8RWCrsRXJbbgYb3z7SGk KgbQ== 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=Paj8WtE1QVOBiBacZSDh4Ia5GCdw6kLO7Fg8izJle6g=; b=WFPHhzrEsbjzYWeI9ygbMLEVfEZ+4ocjImRGB3mtbhhdP0Sbnwckn9e8JekB5ZOoBQ FnhBFajbIO5bnhY2RWRsghOxuWdhMrPJ1QheUsnKEAdCSq/3ChOn0xSXP4LqRdT3G5bP IkE+oqiDAEnWcdCRJBZv9+elcWPy1X/Q8X7ApZXYZVy9KfK+LPoviZry5KPtE1Na7s5H RhJBufJIVFCf//EnhajbWCbERXJlL0LOoceXCbw5PasAE+sjZpCJobXgBaX82y15mAP2 g/UijrfsjIH6pw4ISAGDkvqOKAGpoDRODUVNbVsEi12a58t+EsILQuuVp9pD1gqgxp6w VfEQ== X-Gm-Message-State: ANhLgQ1fxaC570e4T+Ueh7aWQ9WlSHIQdA6pG154b2yQdUq575qoJLY4 vNkKZxoiInP4Yns5DdsMfWq8EQ== X-Google-Smtp-Source: ADFU+vuiVFOViIigW7n9xUBSvnFdGWWxwfoxaB9DWyxfYy+kjB4poM72AmwVADoHey8jxuM4uumvlg== X-Received: by 2002:a37:9bc6:: with SMTP id d189mr19951864qke.174.1584951401994; Mon, 23 Mar 2020 01:16:41 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id s56sm11813140qtk.9.2020.03.23.01.16.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Mar 2020 01:16:41 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 76E7F800CF1; Mon, 23 Mar 2020 03:16:39 -0500 (CDT) Date: Mon, 23 Mar 2020 03:16:39 -0500 From: Justin Pryzby To: Masahiko Sawada Cc: Amit Kapila , Alvaro Herrera , Andres Freund , Michael Paquier , pgsql-hackers@postgresql.org Subject: Re: error context for vacuum to include block number Message-ID: <20200323081639.GI2563@telsasoft.com> References: <20200319040758.GP26184@telsasoft.com> <20200319202931.GT26184@telsasoft.com> <20200320002909.GU26184@telsasoft.com> <20200320065120.GW26184@telsasoft.com> <20200320145359.GY26184@telsasoft.com> 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, Mar 23, 2020 at 04:39:54PM +0900, Masahiko Sawada wrote: > I've already commented on earlier patch but I personally think we'd be > better to report freespace map vacuum as a separate phase. The > progress report of vacuum command is used to know the progress but > this error context would be useful for diagnostic of failure such as > disk corruption. For visibility map, I think the visibility map bit > that are processed during vacuum is exactly corresponding to the block > number but since freespace map vacuum processes the range of blocks > I've sometimes had trouble with identifying the cause of the problem. Yea, and it would be misleading if we reported "while scanning block..of relation" if we actually failed while writing its FSM. My previous patches did this: + case VACUUM_ERRCB_PHASE_VACUUM_FSM: + errcontext("while vacuuming free space map of relation \"%s.%s\"", + cbarg->relnamespace, cbarg->relname); + break; Are you suggesting it should report the start (or end?) block number ? -- Justin