pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: reindexing db
Date: Tue, 8 Dec 2020 00:59:08 -0600
Message-ID: <39a8cdb5-bfbb-9ae8-5867-c4234373277c@gmail.com> (raw)
In-Reply-To: <214E5DBC-1F6F-49C1-8B83-9A2EB33E969A@gmail.com>
References: <292966DF-135C-4483-81A9-5027FC3C8A82@elevated-dev.com>
	<f477709e-6371-1ba3-84df-37e5df8e5d83@gmail.com>
	<214E5DBC-1F6F-49C1-8B83-9A2EB33E969A@gmail.com>

On 12/8/20 12:36 AM, Paul Förster wrote:
> Hi Ron,
>
>> On 08. Dec, 2020, at 06:42, Ron <ronljohnsonjr@gmail.com> wrote:
>>
>> Changing subjects, but the thought of reindexing every index, whether it needs it or not, in one command, seems like a crime against database administration.
> hmm, yes, I agree to *some* point. But also think about possible changes in glibc and the collation problems corrupting indexes that come with it. So, you do a reindexdb deliberately to protect yourself against index corruption because PostgreSQL can't know by itself that it needs such protection because it doesn't know of any changes in glibc.
>
> So, it's not a crime against database administration but rather a means of defense for a database administrator against an external crime attacking the database.

:)  I understand that sometimes all tables *need* to be reindexed.

Probably a habit from my VAX/VMS days, but I prefer to enumerate every 
table, not only for tracking but so that if the command fails 90% of the way 
through, I can skip over the the completed portions.

-- 
Angular momentum makes the world go 'round.

view thread (17+ messages)  latest in thread

Message-ID: <39a8cdb5-bfbb-9ae8-5867-c4234373277c@gmail.com>
Permalink:  ../39a8cdb5-bfbb-9ae8-5867-c4234373277c@gmail.com/
Also on:    postgresql.org/message-id/39a8cdb5-bfbb-9ae8-5867-c4234373277c@gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: reindexing db
  In-Reply-To: <39a8cdb5-bfbb-9ae8-5867-c4234373277c@gmail.com>

* 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