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 1jqLFX-0007cG-B7 for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Jun 2020 18:44:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jqLFW-0003Oi-07 for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Jun 2020 18:44:54 +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 1jqLFV-0003MW-PD for pgsql-hackers@lists.postgresql.org; Tue, 30 Jun 2020 18:44:53 +0000 Received: from mail-qv1-xf41.google.com ([2607:f8b0:4864:20::f41]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jqLFP-0000cD-8s for pgsql-hackers@postgresql.org; Tue, 30 Jun 2020 18:44:52 +0000 Received: by mail-qv1-xf41.google.com with SMTP id a14so9752687qvq.6 for ; Tue, 30 Jun 2020 11:44:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=yUUb15JwufQWtR1FULS7Fs590dvMHAhfCh96kKR8B5M=; b=qGi3A5JZAJ0niuHrTS5uO8elIUsDtt9bHyb1/tNU4VifXEPNySSn2m/KSc88TrvOvj 6yBOWE9tz3VjcABDxVQgZZfeM8Yud+iw1kVJTxe2P7gAWi9K/spVeANIlsTMH/SHHyKC 5lIxuwZ6zc/qA0BizWpyVz4ZAwiABRSru57KMhfuB2/JzVdjqRETcTfX0Tm9E90+WOg0 Y1XzAIsY26A6yrKEW6aCkmu54Sc4h58ZULCkGGRJINpYdaMSjDYEhBsMjlNU6x/CYsy/ im9ni6OPE7+y8uQHlkrU642D2/Hgluokdh+3GOdKgEdGaodNEZc/mtLmqbW0kw7zpzTC YH8A== 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:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=yUUb15JwufQWtR1FULS7Fs590dvMHAhfCh96kKR8B5M=; b=Dsw+TTXCyH0ZF9pFjDQUCGNujHDatLsbX7lejEPwdaRtY6/m2OrzEZ4A4PmFab+EvG Dx1iHwJju8NkjEz852yuXPc+VPo2HmhIhuJs+3z8phizoeC2YJVrnVWnq5XgNUnNpAqp DC15dI35qq2fK13zEWupSMU7OeiTh128W0NqWajBTF/ik9uR6/l5ZSrHn9C+spaqQ/jA tOPJQeR4Z1xWRC4JAQt4QgDtRpym01Q7UF0KzJVmpTfQvLWBfxUvAh5Z+PlX2pxJfu+z eBoXtg/GihBepzgHZ36zrGrx9wWLQLUclT81AKyHcqB0O4N8efPfQc9D6AzsxkNAqVk7 eaxw== X-Gm-Message-State: AOAM530dnqi8qz6dPLDK4gMalSO8OQWHejfv2GdB7ir7ITkXmb8WA40F cdWQJuzUEJUpXHlCEj2VeIb9lw== X-Google-Smtp-Source: ABdhPJy3ftTxZEp2ASCNPoyBtveXnvfeXj61cWaX9LT4dtMc/woz6lS9ZHaMALQBbLr+kOIy3zj15Q== X-Received: by 2002:a0c:bd91:: with SMTP id n17mr20852535qvg.226.1593542686218; Tue, 30 Jun 2020 11:44:46 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id f4sm3654961qtv.59.2020.06.30.11.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 11:44:45 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 1E9E12A3E0F; Tue, 30 Jun 2020 14:44:44 -0400 (-04) Date: Tue, 30 Jun 2020 14:44:44 -0400 From: Alvaro Herrera To: Mark Dilger Cc: Dilip Kumar , Robert Haas , Peter Geoghegan , Andres Freund , PostgreSQL-development Subject: Re: new heapcheck contrib module Message-ID: <20200630184444.GA15974@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5CC85F28-F210-47AC-8DA8-EC4E82AF3FD5@enterprisedb.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I think there are two very large patches here. One adds checking of heapam tables to amcheck, and the other adds a binary that eases calling amcheck from the command line. I think these should be two separate patches. I don't know what to think of a module contrib/pg_amcheck. I kinda lean towards fitting it in src/bin/scripts rather than as a contrib module. However, it seems a bit weird that it depends on a contrib module. Maybe amcheck should not be a contrib module at all but rather a new extension in src/extensions/ that is compiled and installed (in the filesystem, not in databases) by default. I strongly agree with hardening backend code so that all the crashes that Mark has found can be repaired. (We discussed this topic before[1]: we'd repair all crashes when run with production code, not all assertion crashes.) [1] https://postgr.es/m/20200513221051.GA26592@alvherre.pgsql -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services