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 1m0k34-0001J9-Vp for pgsql-general@arkaria.postgresql.org; Tue, 06 Jul 2021 12:19:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m0k33-0004Lb-US for pgsql-general@arkaria.postgresql.org; Tue, 06 Jul 2021 12:19:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0k33-0004Ks-JJ for pgsql-general@lists.postgresql.org; Tue, 06 Jul 2021 12:19:33 +0000 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m0k2z-0007z6-0t for pgsql-general@lists.postgresql.org; Tue, 06 Jul 2021 12:19:32 +0000 Received: by mail-ot1-x332.google.com with SMTP id x22-20020a9d6d960000b0290474a76f8bd4so19741871otp.5 for ; Tue, 06 Jul 2021 05:19:28 -0700 (PDT) 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-transfer-encoding:content-language; bh=SIp+q4Utw7zNvLIdZjU/l1QYFsj665+wjyAC2MOsj7k=; b=kgUJsgpuvhUEme6Oq4erUsl6VwUTBR6P0Lfwe0ZuJaSwfABcEo3M0pRlD8FfUbwN0S H7q38wH7Cjhp/zIJxElqYMOqmBa59DHfTdnE7JlppZhMV8DJT+ASXKDYUpZfLOsSJRpU 4oryM2EOjJ6iayq7WrDIx5CU+Y0OjWAw+2gRF/U0sQx4MJsb9FD7IcglaugO96w+5Bfk GhDyHLwhiXf05FFTox5mWagnhd4y4VgNjQvdo9VZKNJHNke+jbO5GLNd9kVYqJOxg53q qflwf9Q/6eRXmW7KLrqARgwxXY7/+rQKIvTiHNkuJupVgFUgY4u135DYnG4rn+bBNWza xsxg== 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-transfer-encoding :content-language; bh=SIp+q4Utw7zNvLIdZjU/l1QYFsj665+wjyAC2MOsj7k=; b=SN9lpfmEmI0+54nJ9/Ph6qCtxKMiqLMTURFmc7Nb+SZdI75UJLJpwXAyHsV6U2+elu FfZgP1azOQunqWmI7m3EOI63QEsb81gLYOagJfVAop2q3G71u+rp6/t9BicEUasN/TAy +ILJ7oztRZ4ipIZOS4H5+HsBzro4d8UBfVojx1FjUn+2bmH13sxF9XFDC05ZqAGHLMYD bj16eMlavkMpmTV9wLoPOAbVck9u9/hxGKAtyS7Bto3UdqGHvqSuigrgnxE0kvongMD3 EQwtj3XY99FCnLEvY705SzjhT6M1OWT+K3puoZRRCM43no3d6vIqmmHkBW8RiqRDNpE+ 6ApA== X-Gm-Message-State: AOAM530PSoOPXIzry4xcbMenGyCi/9M7PEAa6YumuGaIhpKCXeBiWlrs OFRbQ3ZdAz7AI4oF4lUX7MhLuamsDOR3aQ== X-Google-Smtp-Source: ABdhPJyQivY1pv7lAwOhKXyYi/4C+/hTdyhe5wE/jNB0JHv9iMR6CjS5iznueX8G5vsqROtEeBxQGw== X-Received: by 2002:a05:6830:108b:: with SMTP id y11mr1463061oto.53.1625573967097; Tue, 06 Jul 2021 05:19:27 -0700 (PDT) Received: from [192.168.88.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id j23sm487116oie.9.2021.07.06.05.19.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jul 2021 05:19:25 -0700 (PDT) Subject: Re: When to REINDEX a serial key? To: PostgreSQL General References: <7e6be66c-7bb7-58ff-a490-0837dd73424a@gmail.com> From: Ron Message-ID: <4cc31261-a074-f756-9739-c53400dd298b@gmail.com> Date: Tue, 6 Jul 2021 07:19:24 -0500 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/6/21 4:52 AM, David Rowley wrote: > On Tue, 6 Jul 2021 at 21:35, Ron wrote: >> The legacy RDBMS which I used to manage has a tool for analyzing (not in the Postgresql meaning of the word) an index, and displaying a histogram of how many layers deep various parts of an index are. Using that histogram, you can tell whether or not an index needs to be rebuilt. >> >> How does one get the same effect in Postgresql? > There are a few suggestions in > https://wiki.postgresql.org/wiki/Show_database_bloat How does bloat relate to a lopsided b-tree? -- Angular momentum makes the world go 'round.