Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYsn1-0001oH-Nb for pgsql-general@arkaria.postgresql.org; Thu, 06 Jun 2019 13:50:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hYsn0-0004Ob-Ef for pgsql-general@arkaria.postgresql.org; Thu, 06 Jun 2019 13:50:46 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYsn0-0004Nc-0e for pgsql-general@lists.postgresql.org; Thu, 06 Jun 2019 13:50:46 +0000 Received: from mout.gmx.net ([212.227.15.18]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYsmx-0000vH-Tr for pgsql-general@lists.postgresql.org; Thu, 06 Jun 2019 13:50:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1559829040; bh=zYkdgcnAmOCoUs8rWgJxNBYkwAXp/gL2hSGml6wJcKU=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=WbObBKfj6kLu9KCF04i0L8dNUtgr91RnOW5wc562EDivIqebb2Bx54Zn7n+rlzroq W+FPZxY4CJHp2FPcVA4kH9ms240Iyj5/3iqtahRXaVyG83PrH+WuVDLHQPz0S9tRND sGGLjOcZSFMDlxvwBHZti7mZH0F8F2M1/g5RZOCE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from hermes ([77.183.28.153]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LfC00-1gkQsB3rfE-00ojWk for ; Thu, 06 Jun 2019 15:50:40 +0200 Received: from ncq by hermes with local (Exim 4.92) (envelope-from ) id 1hYsms-0002bi-EF for pgsql-general@lists.postgresql.org; Thu, 06 Jun 2019 15:50:38 +0200 Date: Thu, 6 Jun 2019 15:50:37 +0200 From: Karsten Hilbert To: pgsql-general Subject: pg_dump include/exclude data, was: verify checksums / CREATE DATABASE Message-ID: <20190606135037.GJ1767@hermes.hilbert.loc> References: <20190605144737.GC16572@hermes.hilbert.loc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Ma_X_il-Followup-to: d Re_X_turn-receipt-to: Karsten.Hilbert@gmx.net Di_X_sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi_X_rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri_X_ority: 2 (High) User-Agent: Mutt/1.10.1 (2018-07-13) Sender: X-Provags-ID: V03:K1:tddXoXgqZt5lfanRpDa1QxkTNRebuSoJBQi/c3Lh7SWUSKX2zFV 4wye6UNz0MOtu3mcKSCQ2jIiV/X45GHzUw3NPsYZmEWKW6MVtiyNXct9iCEe+S+E44L+QJQ EkpjC0AvCHbf8/22nnZ39cPq359KrIJC4wrcB9cFtQ3/GaJ8wflcSVtH5Ub+NB/Oq+2m3Yy +93G8yDSkPtJhDikKv1dQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:hRPSLgG0flk=:e6JjI10we6G1y53I5YnhpI 4ERev0uy38wUFf7GX6bgShd9QEr+o1Zx/Yl9yBzTyY34J7syB9NxVr1gk7I5S7i87Mt7eCQrF 8RHv14uJfZZqoHsYblbqePSMQFUoF/iI82Qrwg3cntmtXtqRjORDQ1D/eCMAhCXWkFcWTy7Wb 0p6hPNrmE/uWcmQvy2/kOQ4P4kV5MXH42i+eM9T6G2wUq0OZ3uAOXhBAqa170eWgHZGDm/vgU K1Q8bVSdBurj51JLXWzcshgxGOJevxyTLw6wkyRdZ8aQiMa+FdgEZQ1edbKd3FQFE+kfItTOz UXwO4Fw2MgSSBMxbO7eY7bE4JXRfx3VNUCesz+aaEV/VwX7RULwfCqhD61vbw8MeLnZcdgklj i1u6pP9eK2iXb6ZIzju+f2fb8v/jxvBzpj0Pwg2/GG471a7AcT5CftXjs2jzCOM5cwHOzz9UN glGWvQ8ET0zrGICarUYqnONkF/ZCZtKJnfmU0EjKMuT+KYWzSDCMyjgyVvkrlZDvFzZhMmZwU LXuAQZHg39zmgRDbyd1HEcSyraf7y/jiraTRsSt0Nkmef4ArfKvxL6OaSeGEJ/I0eWfttK0sQ JJyWmtWQhXs5L0xXunH+DqrQswy7h2rKOVkqUC0uM515yo4V9mmImUInoTTtmW54c08Uq1bE5 9c/4c6nZVT7TTC/2ymoqXxaBm1bkHgPULsd+sDWL8qWKIkNLvQAiQxp3JaJrMNuu7r/e0Ab42 bwMcDyqk746+eX3zFk1ksK+aTfxYZJETAgzHff2GDW7MT4GOyhY1d0obmpEK8z0yi+eDlwB82 gtpOHMCD4Vuu0qUnVU5j7nDBlGd3a3B8uauauhEcyWVEiKjaW/YB9xQ+dnFIg4CTNYLeKSBjb OwjPXxQz8wp55joH/Y87EQMLATCRsLHZe6KP64fuHCyZsc6JXE37T6hvKvF66LA7XNgXQtj3m FBWEE/X7F01DKoegbIjIrFf0BRyftzdY= Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Now that it is established that CREATE DATABASE does not verify checksums on the template I have a followup question. The current canonical solution (?) for verifying checksums in an existing database is, to may understanding, to pg_dump it (to /dev/null, perhaps): pg_dump --username=3D... --dbname=3D... --compress=3D0 --no-sync --format= =3Dcustom --file=3D/dev/null as that will read and verify all blocks related to the dump of that database. One will be tempted to include options to speed up the process, say: --data-only which would not output schema definitions. I wonder, however, whether doing so would allow pg_dump to skip some reads into the catalog tables, thereby, perhaps not detecting some corruption in those ? This question would apply to the following list of options as far as I can see: #--no-acl #--no-comments #--no-publications #--no-subscriptions #--no-security-label Is my assumption wrong ? I don't really expect to just be handed a full answer (unless someone easily knows offhand) - however, I don't really know where to look for it. Pointers would be helpful. Is the only way to know reading the source or suitable server logs and compare queries between runs with/without said options ? Thanks, Karsten =2D- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B