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 1obNwX-0005oi-ND for pgsql-general@arkaria.postgresql.org; Thu, 22 Sep 2022 15:16:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1obNwW-0007ma-LA for pgsql-general@arkaria.postgresql.org; Thu, 22 Sep 2022 15:16:48 +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 1obNwW-0007mQ-8i for pgsql-general@lists.postgresql.org; Thu, 22 Sep 2022 15:16:48 +0000 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1obNwU-0006VJ-3A for pgsql-general@lists.postgresql.org; Thu, 22 Sep 2022 15:16:47 +0000 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-12b542cb1d3so14245303fac.13 for ; Thu, 22 Sep 2022 08:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:subject:from:content-language:to :user-agent:mime-version:date:message-id:from:to:cc:subject:date; bh=9kgTgUVb86VDYjim8gKl+NLjMoJS39epMrzY8dS0jrQ=; b=lh3Jwqg77giYv0XxyE/PXlhdSbmpRGDUf5R8ZQl/avk8J5HSBmIdc7ZmrIMvC2q33o 3/y3Zls3QQTrBZykmxdtibI56YLByT8/igcb44Qvkzfmx3mvh1aoLvSXb1FKTqvmYzdW BAtPm/rPskM1hOzbgk0OPHNquwqB8sKupnmFdd1xFQjTfCgirEq/BOsJGx+IYZfWEbzg 1ZoNV9RpBJopL1ieRBEdeerzBtVq+q1jZt5DIo5SeDa6Y1REcoAJ9vyTVKsFXGOiEXyj POgbfzhDqYA0rk0qMyambAGDikIHvX/IPV51z+ea+Z1OzqbPiIMKPoFlk3ODFKWbzMFY Uljg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:subject:from:content-language:to :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date; bh=9kgTgUVb86VDYjim8gKl+NLjMoJS39epMrzY8dS0jrQ=; b=OOvF2AzFTJ6+p2ck/NRER3BREQxOjY5PYSxZiCASAewR6KGtOtiM1AOqn+jbAIWBYF 3Ss1Iw26nupwaOHA1t71qGPf1Xyea+UjsjagIhAzRA9tQDqKQNcQD0xcZNKinlBd34XW qeEU2i4RWD+aL3uYLW71jWIta61xqLef/XWaai5+url1b71uIFMrSBIfGvbHD3jeCBXf Q7IZJB5QAJaOWhdcEA9tL+E8/xFgKpjalAW6v6DqPwsKXbhKeF1iDGldw4Cy8G2tKPsg 26usF1TNjpFBhLOsBN4bMVOIOc7HwhomzIE6eu5DZex9+brlxucPdmdt1JO05+3mr7pz +itQ== X-Gm-Message-State: ACrzQf0ZkkrGNfoDmwnE45Q32sIeDFENljVtP65lO7sxUwZUEc3EU0bR +V5Bf4+1orUE88HrKdU/ClQDCY4zrx0= X-Google-Smtp-Source: AMsMyM7AzyfbRK7YYsVkdj4p4jfBdl74eNPQ9P+IqL2NWWdtMOYP4tJdYNONgwMqUmf2qHSJW1NIBQ== X-Received: by 2002:a05:6870:e60e:b0:12a:f442:5024 with SMTP id q14-20020a056870e60e00b0012af4425024mr2181885oag.36.1663859805136; Thu, 22 Sep 2022 08:16:45 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id p6-20020a9d76c6000000b00616e2d2204csm2810679otl.21.2022.09.22.08.16.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Sep 2022 08:16:44 -0700 (PDT) Message-ID: Date: Thu, 22 Sep 2022 10:16:43 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 To: pgsql-general@lists.postgresql.org Content-Language: en-US From: Ron Subject: Validate the internal consistency of pg_dump output? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk In my case, it's directory format backups. (I'm not asking whether the pg_dump output is exactly the same as the data in the database; that can only be done inside of  pg_dump, and I don't see any option for that anyway.) Is there a tool for validating that: - there are "\N" lines at the end of every NNNN.dat(.gz) file, - toc.dat isn't "missing" data at the end of the file, and that - there are NNNN.dat(.gz) files corresponding to all the tables mentioned in toc.dat? The use case would be in validating that pg_dump actually dumped all the data when there's a question of whether or not it completed. -- Angular momentum makes the world go 'round.