Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fK9tT-0003d7-Bh for pgsql-general@arkaria.postgresql.org; Sat, 19 May 2018 22:00:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fK9tP-0007rb-Te for pgsql-general@arkaria.postgresql.org; Sat, 19 May 2018 21:59:59 +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.89) (envelope-from ) id 1fK9tP-0007rR-CJ for pgsql-general@lists.postgresql.org; Sat, 19 May 2018 21:59:59 +0000 Received: from mail-it0-x232.google.com ([2607:f8b0:4001:c0b::232]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fK9tG-0002Nz-LS for pgsql-general@postgresql.org; Sat, 19 May 2018 21:59:57 +0000 Received: by mail-it0-x232.google.com with SMTP id 144-v6so17168687iti.5 for ; Sat, 19 May 2018 14:59:50 -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=h6kJdxCgCdqUl+MzWi7+89rM3plJ/BjOYgHVVSZgBSU=; b=IYOWT6NuMx2s8A7F/kKC5RA9uXMGAuCJZKDG3o9HQU2E5EELK2C1R/flq6e/WKWI2H U9aBwFN5F87f/m9EkjzNYKLqnqC1udme0q51iye3rx3aCzLzvdEU8YsmOJiNPPMcQmyH MLH1e70bsu0sZtUaQk5difBd081bOasUDLt8uOd3GQkt5QszfhpwlI9Cd74Qq5r8Ujl4 P1BFXbBBJUwwsJtWoJixE8dgAnX8JOj8GOv+yJPt2EZkcye7Qu2uvMZf/ZPH9jitEZY8 ek+SS6MMJFpBsqgHlKqUx/gK5l0ZOPvuLOp6ed+Ku71ZoEfzkCIHoFcbGxs4HaruhkHi m46w== 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=h6kJdxCgCdqUl+MzWi7+89rM3plJ/BjOYgHVVSZgBSU=; b=egpNugfnMs+wj5kC5tIQ/huP8AHlpewENNrbhTVW9sDeVX0weaLFSCMe/Hu8wiIhpk yjWGMqfadMi/ZXjGNZWlW4R+a8yUKK9EoqOPl5siZ1LL4aHh/MvTjkrbdVKQ5KHyjcJT NlgIabJp3qKz0cnlW5rTtktJe3VTZr5nzTRR4X8BbFWFARlYI1vrMjgDUQdKOTd6N64B psvmMdjzKlyyQu0zXfGqlAM1B+Ffq0T5xffISsH4NQZwa5g+zEm4OMKWmR/HHWmXA+sW JQW24AyiQREMxRSx7hZ+V8BCVL8DjFBrvnNlepJRlH1aOEejUzCa1LvMwLXDU4z8K09F ePYw== X-Gm-Message-State: ALKqPwdeBovy7TvPUfD0XUxBhzVGGrxA+yJBUnwaSczbmS3hvWnrbYCX Eue9To4zqAY0WjBLDmxr/TOHamyzLb4= X-Google-Smtp-Source: AB8JxZr/ct5WVtUN3AB/jT335qGzP3i9AIzV6boHZkl6laYuqOnFDnXFacLqw9bwebON4tWd4rSTdA== X-Received: by 2002:a24:d886:: with SMTP id b128-v6mr12428898itg.39.1526767188659; Sat, 19 May 2018 14:59:48 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id g126-v6sm6233299ita.20.2018.05.19.14.59.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 May 2018 14:59:48 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 1F036801727; Sat, 19 May 2018 16:59:47 -0500 (CDT) Date: Sat, 19 May 2018 16:59:47 -0500 From: Justin Pryzby To: Tom Lane Cc: pgsql-general@postgresql.org Subject: Re: postgres=# VACUUM FULL pg_statistic => ERROR: missing chunk number 0 for toast value .. in pg_toast_2619 Message-ID: <20180519215946.GE30060@telsasoft.com> References: <20180519142603.GA30060@telsasoft.com> <26735.1526742503@sss.pgh.pa.us> <20180519162457.GC30060@telsasoft.com> <20180519163528.GD30060@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180519163528.GD30060@telsasoft.com> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, May 19, 2018 at 02:39:26PM -0400, Tom Lane wrote: > Hm, so was the timeout error happening every time through on that table, > or just occasionally, or did you provoke it somehow? I'm wondering how > your 9s timeout relates to the expected completion time. I did not knowingly provoke it :) Note that my script's non-artificial failure this morning, vac full of pg_statistic DIDN'T timeout but the relation before it (pg_attrdef) DID. I guess the logs I sent earlier were incomplete. I don't know if it times out every time..but I'm thinking timeout is implicated, but I don't see how a time of on a previous command can cause an error on a future session, for a non-"shared" relation. However, I see this happened (after a few hours) on one server where I was looping WITHOUT timeout. So hopefully they have the same root cause and timeout will be a good way to help trigger it. postgres.pg_statistic... ERROR: missing chunk number 0 for toast value 615791167 in pg_toast_2619 Sat May 19 17:18:03 EDT 2018 I should have sent the output from my script: <