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 1kmWy3-0001ex-Qx for pgsql-admin@arkaria.postgresql.org; Tue, 08 Dec 2020 06:59:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kmWxz-0006v9-7T for pgsql-admin@arkaria.postgresql.org; Tue, 08 Dec 2020 06:59:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmWxy-0006v2-Tw for pgsql-admin@lists.postgresql.org; Tue, 08 Dec 2020 06:59:19 +0000 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kmWxs-0006RK-Fx for pgsql-admin@lists.postgresql.org; Tue, 08 Dec 2020 06:59:18 +0000 Received: by mail-ot1-x330.google.com with SMTP id h19so15019002otr.1 for ; Mon, 07 Dec 2020 22:59:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=2eyZLeL3mNzHhb2gLTdyjJPJaziV1fUs2io4Jvmh2vc=; b=Xf26zthmJa5IyjUSNtXWovxZ1PgDoFycm8fWtAh1V2pSli8iI0Ax9CYPmNev4FpI6C mOEaVJ7nAOZXIMtXmtuXX4uMJ0fAHkUISnR0mbXpZDBVJcT70ABrs1akXwXHJs79tfH7 BFfF5Kaf+uZM5yBNXhYPzbxCOqYUAYQOl2Km6cCeMuJ9Vl8kQlhRmJH3VIcjJgLVH8FZ wiHLqstnZso/s9CKK1hcdpfXMQd08fvhfWmzErDYSqi224kOjwOXuSBVUA50WlCOSbZU JDBAC/bn9NASwxtqhjV/YQNwsGGq+ljYRF2oVE3MEoX5+FU3cdIjts6v40CF48Nt1zV2 mGPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=2eyZLeL3mNzHhb2gLTdyjJPJaziV1fUs2io4Jvmh2vc=; b=kcPQzGeev4BxG1yvVkY3LM5zQiu+f3j88wQ3EORz7sjYd0UEooWxN/ucrni5fHRdBE aGSvwczqumL33OUN33xMmWrhjL3KD8fwfzMBV0EHAmSegUGy4btV2R++LOxWPvynfSan H2ww4wdME4P/dvDKJWbVeaWoZDzfPncxgK9oFrgBSxjg1TfX/rj+FX4LRkH0oDGuLzed mCYH1PRC/axZcO3CbaG570Re4ZGg9GnJr82yZBybFHIcx6i4LeMyqJqB9yClx0toimbQ yPnaycRxAfgU6n9jdnGcKMrgI/ROrk+MR5fxa7xwBNttdXvOQDS6/OQG9uRx3ov9WjNt 85Iw== X-Gm-Message-State: AOAM531Fi6OB6mKAGbS2WGBiBYD9subsjsNZgeNntVc7KSCqHD9OXsiq LqKEReGFmPC3qCUhY+DIkzdayrEdKqFxAg== X-Google-Smtp-Source: ABdhPJx7EpmmUv9d0PDVEfIr12vRd2fzGLitxLwCe3UeLQczgrS+PaKhBe1KHI3HLwTtO9gZy1GvRQ== X-Received: by 2002:a05:6830:1c62:: with SMTP id s2mr16029734otg.177.1607410750162; Mon, 07 Dec 2020 22:59:10 -0800 (PST) Received: from [192.168.1.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id h93sm3156040otb.29.2020.12.07.22.59.09 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Dec 2020 22:59:09 -0800 (PST) Subject: Re: reindexing db To: pgsql-admin@lists.postgresql.org References: <292966DF-135C-4483-81A9-5027FC3C8A82@elevated-dev.com> <214E5DBC-1F6F-49C1-8B83-9A2EB33E969A@gmail.com> From: Ron Message-ID: <39a8cdb5-bfbb-9ae8-5867-c4234373277c@gmail.com> Date: Tue, 8 Dec 2020 00:59:08 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <214E5DBC-1F6F-49C1-8B83-9A2EB33E969A@gmail.com> Content-Type: multipart/alternative; boundary="------------70B194933822BA67995F7BB7" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------70B194933822BA67995F7BB7 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 12/8/20 12:36 AM, Paul Förster wrote: > Hi Ron, > >> On 08. Dec, 2020, at 06:42, Ron 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. --------------70B194933822BA67995F7BB7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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.
--------------70B194933822BA67995F7BB7--