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 1kn2qV-0007d2-M7 for pgsql-general@arkaria.postgresql.org; Wed, 09 Dec 2020 17:01:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kn2qT-0003jJ-VA for pgsql-general@arkaria.postgresql.org; Wed, 09 Dec 2020 17:01:41 +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 1kn2qT-0003jC-JA for pgsql-general@lists.postgresql.org; Wed, 09 Dec 2020 17:01:41 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kn2qR-0003r2-0I for pgsql-general@lists.postgresql.org; Wed, 09 Dec 2020 17:01:40 +0000 Received: by mail-ed1-x52e.google.com with SMTP id h16so2334274edt.7 for ; Wed, 09 Dec 2020 09:01:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Rg6NJPLg7aIqAfg5W0Ts3OC6EpiwFtqC2+miUwAl3GU=; b=TdW1L8AOERI9wC6WpFlcp4bmNHoOsp2VhRg1/gLJ4z0IASlLnmQJNvDj9mC5qFX4SX k4U662uQiwwaFBlKiBBHuarXc+RLaXdyWyxR2lMrtUkZ8W+4XczWU+b/ZK5iTW/3ozhW pzlCA5kjQyiKpl2LzTHdp0gMSLGVF+cGcp3rxB/NsP301RKSmWO9xxsHSjTc4lCoHAGQ 17UsghSB2RrLUC/5qid/Nv5q31NlmOWUo2tKt6mPfmdrzrj/7JnvF3bxWlMsJk2cab9n 1jJ30HacKrAD09sVu/OVZy+0qaeVgm1GUxLtkaBLOPiNiZe/9YQvrXHcwwPeTNIP2uB0 fNIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Rg6NJPLg7aIqAfg5W0Ts3OC6EpiwFtqC2+miUwAl3GU=; b=Sd1W/9iaS1HUBT6n63iDm+RkoIztOMXwutsycE5sSvtj4Cvqhsrf3MmnuiC2MzZXBc cQ30I7KFr6OgwVnK5/vFFcUA5QlsB4/+fkdpoOCiBFLZQAPB6VfRyPSmrDFmSFoxZ69s /QAI1B9UjV/ZHwiT4D3z94gqH2aXUkPtglOoqljFaOvX1zHurm2EyLI/5/LDslG7jogF AJyQm9LsE7VVUwleD2yp+LfnTsRiYs607qVU4aRAQe8wSrLgaL5KNUe6F4sbtOwjYHrp QOWBqh9LhXTQC7hTTMjlx1Z3CpmnE2Xu+XOJKawu2FMQnD8jDgZlCd0HSG25w5Sv6Oy1 g7fg== X-Gm-Message-State: AOAM530pmLDRSpFaLNqtZQlAbJFvTYqVA/yPq2YIwPOBwenpIQ6JLGX2 xRavbwXd/mQb7fxY/7NDjav5tWeT9oQOm7MEdcKzkOMrHK1jkpdzgBDJ+9KMXhb+D6a0TpxOvim 4a6+Csd90qeU5vjRyvZ98NzLF3zVDDbTZKhD342e70EAjQx2bquF1WycmfpA+MnloDIQononPBL /1d5xWViYpY5/3RFQFEjtoNn36B8p860iCSOOyFqDzNr8zIOHwIsB1WCg7xtApglsP3cDOF4OIW IelhiP2JIIULsmFao7beP9RpuWw+ilW6R8leeqU+YGOMSL3wjylhA== X-Google-Smtp-Source: ABdhPJyduxM5GewxClinXWn3LLb0ZjEttKzSvAUpeLdYtpuesMavu6hKt958gnCvY3qxVBb70Bizjg== X-Received: by 2002:a05:6402:21a:: with SMTP id t26mr2941288edv.173.1607533295263; Wed, 09 Dec 2020 09:01:35 -0800 (PST) Received: from [10.137.0.18] (ip-86-49-249-71.net.upcbroadband.cz. [86.49.249.71]) by smtp.gmail.com with ESMTPSA id m7sm2182539eji.118.2020.12.09.09.01.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Dec 2020 09:01:34 -0800 (PST) Subject: Re: Potential BRIN Index Corruption To: Huan Ruan , Alvaro Herrera Cc: pgsql-general@lists.postgresql.org References: <20201126024244.GA15675@alvherre.pgsql> From: Tomas Vondra Message-ID: <645d0f4b-11a5-04fb-8eae-46c9e872271b@enterprisedb.com> Date: Wed, 9 Dec 2020 18:01:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/9/20 12:07 AM, Huan Ruan wrote: > HI Alvaro > > Unfortunately those records were written a while ago and we no longer keep > their WAL logs. Thanks for your help anyway. > Can you estimate when roughly the records were written? E.g. by using a rough estimate of WAL or XIDs generated per day, or something like that. Maybe there was some I/O issue in that time period and a couple writes got lost, or something like that. Are there any other corrupted indexes on the table? regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company