Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUEs1-0000Cl-IP for pgsql-general@arkaria.postgresql.org; Wed, 27 Dec 2017 16:47:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUEs0-0002h6-IX for pgsql-general@arkaria.postgresql.org; Wed, 27 Dec 2017 16:47:56 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eUEs0-0002gt-3V for pgsql-general@lists.postgresql.org; Wed, 27 Dec 2017 16:47:56 +0000 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eUErv-0008F8-HS for pgsql-general@lists.postgresql.org; Wed, 27 Dec 2017 16:47:55 +0000 Received: by mail-qt0-x244.google.com with SMTP id a16so48486138qtj.3 for ; Wed, 27 Dec 2017 08:47:50 -0800 (PST) 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=0QPIhCOJu90+I7r9RqtlqZ4I7GHY17O7YtFDObQLLJg=; b=CF8f/UpSn3iOlAa63U/x+YLaNdj58DvtGQYqDCV7NylyzVsSlb+PRbjeCQursZUcfI +pBk7cmfCm98P5PL1IGmGpnFcGELRLqJaJX2cfU998NL9vTVgF2bx1oEbvFlSXMd0gPu JyCIXIAyDL62jtipJDQE39/zJdX4210TZa/2UO173GKQX9dQTkSMxlACJJ8Sxf17y1hT vBK9CWIb76Z4kAzywEQrzgjfJ38JrmikVacKsXUKG0aoqZuuaPxgdPiUZZ4UtOUTiOdG tEfarh5arSs2atmnlRcgPg1CWDWjuWBmrwQuwL57WejC50rTLq+JYKBBm+h0eQqwmjHy NcQA== 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=0QPIhCOJu90+I7r9RqtlqZ4I7GHY17O7YtFDObQLLJg=; b=niAqqiiPpvyo3FCPrag79LGSVascDu2JKclBBw+3fZl39Ybpz33WOdjvJCPwiInuv7 lOg8BC2bwJWHwjSd1eDpDFJuPUim3Izg+IadWJ97+4QEzfQkIEnsBezT4DFZGU+jmN1P EdbbKnSW1OD0cQVgxsAC3BoiJaPjVlOLfMBJsOf5hX1rPu+BZoUV3d20UV51Jb24jAYt hU49IRLPHqUQb1Bt1vXI6CB18DCiKS4Rch8xdkIA6okaFHFDBZ3R+ewXwX3PdLNH5juc yZ/pT6W41jhJJYOC/slKqBaX2dvIWMjzcko5ou9V7s6btoIko+hB5ASF95AzAk4iDpI+ wy/g== X-Gm-Message-State: AKGB3mI0LZiFGcNQbsFis4qLL9k6dexFFb47ZoCozuZjPMiHLjXghEcI TKw6dAl8OH+Y1idKJ2KjDAT6sGJtDSsFCZ8xrqUM63IMlpYeJwex+OgHZOfuPAxDAXuIJBt6MWC PohjCbrfoux3JVRQHOAXfGSd21VJ0orDEke16b/b29R+1M6HzmpuAMB2GAqQN5q3HIhKehoTNJr vtQgOP7jHUQGo= X-Google-Smtp-Source: ACJfBousIyaQmtR0uVuTjpc6GoJRPZG+9CyHB19bwkojRD/KCI+iJXpfu8HSx6jqAYB4HXl4P4hcew== X-Received: by 10.200.28.82 with SMTP id j18mr151883qtk.133.1514393269099; Wed, 27 Dec 2017 08:47:49 -0800 (PST) Received: from alvin.alvh.no-ip.org ([179.57.113.18]) by smtp.gmail.com with ESMTPSA id h21sm21237214qte.44.2017.12.27.08.47.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Dec 2017 08:47:48 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 65DA06A9; Wed, 27 Dec 2017 13:47:46 -0300 (-03) Date: Wed, 27 Dec 2017 13:47:46 -0300 From: Alvaro Herrera To: Stephen Frost Cc: Edson Carlos Ericksson Richter , pgsql-general@lists.postgresql.org Subject: Re: Does PostgreSQL check database integrity at startup? Message-ID: <20171227164746.hnoqqxefp5abzjwz@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171227144951.GU4628@tamriel.snowman.net> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Stephen Frost wrote: > * Edson Carlos Ericksson Richter (richter@simkorp.com.br) wrote: > > Anyway, instead digging into rsync functionality (or bugs - I doubt, > > but who knows?), I do prefer to have a script I can run to check if > > there is obvious failures in standby servers. > > As mentioned, zero-byte files can be perfectly valid. PostgreSQL does > have page-level CRCs, if you initialized your database with them (which > I would strongly recommend). Page-level checksums would not detect the problem being complained in this thread, however. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services