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 1fK2oG-0007nD-3l for pgsql-general@arkaria.postgresql.org; Sat, 19 May 2018 14:26:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fK2oE-00032q-PO for pgsql-general@arkaria.postgresql.org; Sat, 19 May 2018 14:26:10 +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 1fK2oE-00032g-AI for pgsql-general@lists.postgresql.org; Sat, 19 May 2018 14:26:10 +0000 Received: from mail-io0-x231.google.com ([2607:f8b0:4001:c06::231]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fK2oB-0000rB-HB for pgsql-general@postgresql.org; Sat, 19 May 2018 14:26:09 +0000 Received: by mail-io0-x231.google.com with SMTP id f21-v6so9545640iob.13 for ; Sat, 19 May 2018 07:26:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=SSs8TL7xqZvT3bUDhc9MVmZP9lmt6QlBZOKzCYa9U0o=; b=HDCyZVojIOoDWF0YknvmcMgdBYTJrG4KSMf9pRKaEzLK1549mFVJ+/PpN86vf9jeK2 ZZ1mkKAAGTC8BoLiNMmp3Noo/7uB6HsTwetvZw1HvS2vT+8Z/4ynKqu8GTfBp9lQgpC1 1FXIR5Q7k3nhRjPsF/OTOvsuBnicewWeb1sdPF6NkiWGoS+y1YXwhQYipgnvWHjJFU7v 4GBt45jvRv0PQwlzdb3eQT/qvaFwR6KRRy6wTB5h7CSR3fh9A8cYxFovi9Grnv7oN6C0 0kLMljRZPXxoN8CdjAF1hxwzF+bRaDnXBshT9rqCEP41r0CVqNObE2l0QLCOYM3aiwSN t2FQ== 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:subject:message-id:mime-version :content-disposition:user-agent; bh=SSs8TL7xqZvT3bUDhc9MVmZP9lmt6QlBZOKzCYa9U0o=; b=KrZSI54k7dPuXNrkcIwC8t9WMMteigiglJsEs8O0oScBJNp9/3974YfTXKVzeFtvut aU+WXkSHC6n/TAUIgAkjI+4d/dk9sNsTp7NOhV579KFK8x0g4z/+wcSGuZIf89b/BtCu cng/O4mGmsjY7ziOGxuseZrqjEAOD/qXKsUUNRXB62DMWJ8Mbtah9i8ckE96OB6yPiLf Lh240F1NQifFEdzzvg8mRCEtwF0QGlkap0A0C2aYdVjfBj5jN/a55tUGNytx70R8Cn6d ID/48HfMvGE61RMEdVoKO4Eyl/gVvGNPWoYazIlY4xb7W5WVaWdbVXdDTlDoTVsvJvVu wNTw== X-Gm-Message-State: ALKqPwfa2kE/Iw0pbPZny7WUgOn5Hkm6Orwho3k88GBZh7LRH6Zs5RxQ qvlw7MdpxXmq72MC5WcZo1Zj2/vPqs8= X-Google-Smtp-Source: AB8JxZqerNJyV4AycUDBvz4AZW+TGJjJ9PE7V99nss7DWRXI7HjhD+lwB8KAYB5F5K3B1HDrgQ5v8w== X-Received: by 2002:a6b:bc06:: with SMTP id m6-v6mr14245121iof.205.1526739965667; Sat, 19 May 2018 07:26:05 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id j37-v6sm6219356ioo.41.2018.05.19.07.26.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 May 2018 07:26:05 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 272FA801727; Sat, 19 May 2018 09:26:04 -0500 (CDT) Date: Sat, 19 May 2018 09:26:04 -0500 From: Justin Pryzby To: pgsql-general@postgresql.org Subject: postgres=# VACUUM FULL pg_statistic => ERROR: missing chunk number 0 for toast value .. in pg_toast_2619 Message-ID: <20180519142603.GA30060@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I recall seeing various discussions hoping that it'd been finally fixed - Just wanted to report that this has happened now under postgres 10.4. It looks like this is not related to: 0408e1ed599b06d9bca2927a50a4be52c9e74bb9 which is for "unexpected chunk number" (?) Note that this is on the postgres database, which I think is where I saw it on one of our internal VMs in the past (althought my memory indicates that may have affected multiple DBs). In the immediate case, this is customer's centos6 VM running under qemu/KVM: the same configuration as our internal VM which had this issue (I just found a ticket dated 2016-10-06). In case it helps: - the postgres database has a few things in it, primarily imported CSV logs. On this particular server, there's actually a 150GB table with old CSV logs from an script I fixed recently to avoid saving many lines than intended (something like for each session_id every session_line following an error_severity!='LOG') - I also have copies of pg_stat_bgwriter, pg_settings, and an aggregated copy of pg_buffercache here. - nagios: some scripts loop around all DBs; some maybe connect directly to postgres (for example, to list DBs). However, I don't think check_postgres probably doesn't connect to postgres DB. I'll defer fixing this for awhile in case someone wants me to save a copy of the relation/toast/index. From last time, I recall this just needs the right combination of REINDEX/VACUUM/ANALYZE, and the only complication was me needing to realize the right combination of affected DB(s). Thanks, Justin