Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eV7Eq-0000VE-QZ for pgsql-general@arkaria.postgresql.org; Sat, 30 Dec 2017 02:51:08 +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 1eV7Ep-000483-Eb for pgsql-general@arkaria.postgresql.org; Sat, 30 Dec 2017 02:51:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eV7Ep-00047u-4E for pgsql-general@lists.postgresql.org; Sat, 30 Dec 2017 02:51:07 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eV7Em-0003XR-Bc for pgsql-general@lists.postgresql.org; Sat, 30 Dec 2017 02:51:05 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6C6A55F79C; Fri, 29 Dec 2017 21:51:03 -0500 (EST) Date: Fri, 29 Dec 2017 21:51:03 -0500 From: Stephen Frost To: Melvin Davidson Cc: Edson Carlos Ericksson Richter , pgsql-general@lists.postgresql.org Subject: Re: Does PostgreSQL check database integrity at startup? Message-ID: <20171230025103.GF2416@tamriel.snowman.net> References: <743808611.5608368.1514484408822@mail.yahoo.com> <20171228182636.GG4628@tamriel.snowman.net> <48a4bcfa-6b85-81ca-9b59-9e47af8fa5af@simkorp.com.br> <20171230011315.GC2416@tamriel.snowman.net> <20171230020706.GD2416@tamriel.snowman.net> <20171230022210.GE2416@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Wb5NtZlyOqqy58h0" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Wb5NtZlyOqqy58h0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Melvin, * Melvin Davidson (melvin6925@gmail.com) wrote: > >the query is outright wrong. > Really? I submit a query to help and all you can do is criticize? I explained exactly what was wrong with it, and how to write a proper query to answer this question, with the thought that you'd appreciate the help and would create a proper query. I'm a bit mystified as to why you seem to be unhappy with this. > Yes it is legal to create a table that starts with pg_, but any PostgreSQL > developer should > know that is not a good idea. That's really not an excuse for providing an incorrect query when you could simply adjust the query to properly filter on nspname instead of relname, further, while perhaps 'pg_' instead a good prefix to use in a PG database (note that other databases, of course, wouldn't have any issue using such a prefix), using a table name starting with 'information' or 'sql_' isn't nearly as questionable, yet your query also filtered those out. > If you don't like the query, write a better one yourself, but > kindly do not try to degrade the efforts of others. No, pointing out that a query is wrong and doesn't acurately answer the question is something which should be done, just as someone should call out a bug in code that's been submitted for inclusion in PostgreSQL. I've tried to be kind and point out exactly what's wrong, along with encouraging words of how to adjust the query to be correct. Having misleading and incorrect information in our list archives isn't being helpful- those archives are preserved for more-or-less forever, end up being returned in google search results, and have caused confusion and even data loss in multiple cases that I'm personally aware of (thank you to pg_resetxlog...). We should all try to work to minimize that, and to correct it when necessary as best we can through responses. Thanks! Stephen --Wb5NtZlyOqqy58h0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJaRv8XAAoJEO1sijiDR2RVOWkQAK544wLlZThz67ss8cLGHo55 SiToihCSAYIu0ndyOnP0jxsPoeZyfBcgCIg9Ckp2YC59Fu1NSOO3NfuW9pFlNPqE evzbZZqgNEqYdBL7x09NzWaLpeOSCcV8qLKzVAnt4/68uckanV5jHrP1fLVSg+vP 5Z4fOkb970y6Su26YVnb691ITohVXF46hAsaDR4H4yOIiSPAcO6F5SLGofdMCuqY jIFAOPyoQpNAQ02sek8p1InMhBNrK8iC3CIhToWAp1DsffMTloE8tvNrHOtqEHYt 0Wf2oVAJnsAQldKfBMSHskn3wX7s4Lry1LDnusHZKw6343FOt4TTb6DWnpgaDhgn OLyIKrsgqxQUG4jSOq4HivbEZvpwe1uIpf7ovXDMfxMLgSfMncvEVDJ6ab7RB051 u5kdDS49ieV0zWu299m7A4boFuhqQIcgfttfQurFzq+RHltduoJYxBjaoo6D8Ysl rjqHahDHv0VKR9VvJp8JixfMwI713+CAD8GmoTwiQATnD6ex+Lvo6Z6ZzBM9hJJ0 yVnankfOi1coXbBtptvkghbiRlQ5E+gNTUt3m6SgF3kam/+lUtGDMSqKoR6TJJTA 3upgAD7Xivzc/Mc2wTrpdY6HOzQB3SBfomOCbhZYrTAbDj7My2G8Enb/aGdRh2rB tjKXVP74CbsPZxzmkAni =Ssy6 -----END PGP SIGNATURE----- --Wb5NtZlyOqqy58h0--