pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Melvin Davidson <melvin6925@gmail.com>
Cc: Edson Carlos Ericksson Richter <richter@simkorp.com.br>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Does PostgreSQL check database integrity at startup?
Date: Fri, 29 Dec 2017 21:51:03 -0500
Message-ID: <20171230025103.GF2416@tamriel.snowman.net> (raw)
In-Reply-To: <CANu8FixcN8k_ew2hK_c_Y7ofOsPFXLm=3ZP-nw5jcujLKf7XCA@mail.gmail.com>
References: <743808611.5608368.1514484408822@mail.yahoo.com>
	<20171228182636.GG4628@tamriel.snowman.net>
	<CAGBW59fasv0KxRg6YTfQM7+zzmJ6jnwBvDGEiNi0aJH9HyqCzA@mail.gmail.com>
	<48a4bcfa-6b85-81ca-9b59-9e47af8fa5af@simkorp.com.br>
	<20171230011315.GC2416@tamriel.snowman.net>
	<CANu8Fiwv9WFAWdhiTKYTjd7W7tUum7yDn=k-eVwo3E1G+m8WPA@mail.gmail.com>
	<20171230020706.GD2416@tamriel.snowman.net>
	<CANu8FizkQcod6277BV-0ON7OdXdK95dNhR=68-0V9jG-mNz_wA@mail.gmail.com>
	<20171230022210.GE2416@tamriel.snowman.net>
	<CANu8FixcN8k_ew2hK_c_Y7ofOsPFXLm=3ZP-nw5jcujLKf7XCA@mail.gmail.com>

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

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (51+ messages)  latest in thread

Message-ID: <20171230025103.GF2416@tamriel.snowman.net>
Permalink:  ../20171230025103.GF2416@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20171230025103.GF2416@tamriel.snowman.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: sfrost@snowman.net, melvin6925@gmail.com, richter@simkorp.com.br
  Subject: Re: Does PostgreSQL check database integrity at startup?
  In-Reply-To: <20171230025103.GF2416@tamriel.snowman.net>
  References: <743808611.5608368.1514484408822@mail.yahoo.com> <20171228182636.GG4628@tamriel.snowman.net> <CAGBW59fasv0KxRg6YTfQM7+zzmJ6jnwBvDGEiNi0aJH9HyqCzA@mail.gmail.com> <48a4bcfa-6b85-81ca-9b59-9e47af8fa5af@simkorp.com.br> <20171230011315.GC2416@tamriel.snowman.net> <CANu8Fiwv9WFAWdhiTKYTjd7W7tUum7yDn=k-eVwo3E1G+m8WPA@mail.gmail.com> <20171230020706.GD2416@tamriel.snowman.net> <CANu8FizkQcod6277BV-0ON7OdXdK95dNhR=68-0V9jG-mNz_wA@mail.gmail.com> <20171230022210.GE2416@tamriel.snowman.net> <CANu8FixcN8k_ew2hK_c_Y7ofOsPFXLm=3ZP-nw5jcujLKf7XCA@mail.gmail.com> <20171230025103.GF2416@tamriel.snowman.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox