Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hbsg7-0001ka-43 for pgsql-general@arkaria.postgresql.org; Fri, 14 Jun 2019 20:20:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hbsg5-000596-WE for pgsql-general@arkaria.postgresql.org; Fri, 14 Jun 2019 20:20:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hbsg5-00058p-HN for pgsql-general@lists.postgresql.org; Fri, 14 Jun 2019 20:20:01 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hbsg1-0008KS-Lw for pgsql-general@lists.postgresql.org; Fri, 14 Jun 2019 20:19:59 +0000 Received: by mail-pl1-x630.google.com with SMTP id cl9so1432144plb.10 for ; Fri, 14 Jun 2019 13:19:57 -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=oNrFBGe/8tEHwHjgFLKkoPx9nacl9GPqv95/CATZd0I=; b=nFQ1/RhLd5XJJE3X4iVpT2pukSvRfR/6DtFzDv6b3wNCJxgRik463OmWBZgf/AHy1X 4YzcGDfBQrHzY+9Wr50qulUFn0GwBGQ7b7u9YnBmANT6e8PT2r80GoOmSiEPIPDyiFj7 KiLYNWS3pnA+oPBsJQM/4HFZxr0fQNTTEGzAwWtGi8hzTY7suiy0gNrtRG26C+8t0Gd0 Q12qJcTXm121pE0rZEZz8Gx1QGCF8quIuDDW6ruv5WGFYk4gpYC+BoEEBdzJTwhiwMtf P1fF1o5vWr52Zrj1PAvGXjKoxPqZqeZ9CVwOd0v7R0sJ7uitQEJUyPxnrOCooqYW+ad/ rB9A== 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=oNrFBGe/8tEHwHjgFLKkoPx9nacl9GPqv95/CATZd0I=; b=sO6UBHFgGvIOhxGTOzn5lL1oilGWV9Tt/SVhHTrSw1nuKsDwquJWYKV4699VuUZYgu rLY1Ll5uPSFyYYmkSnE/QTMsBx2gtk3MkHfVef2fMbzV9ob88Gv6MHqfPFhG9axoBsau 943EQJAD/DvQLnMd2vYSj5YLSz7ibQQPDQlRmvvAPUliFF9rNeFCNPC0+C6NFhM29zmW meEN6WISm9MlArRGxgi/U+E3e6iGvFYtMurP7QqFFXoxo2/g9wNUecO5FDZfVWC1js4o ADtbQCh3njWdXZc122IrUaJceV2d8uIMMEASoBG+wYmAWIzW8ki3OrZpiqA7Rjbb9oH1 a/Og== X-Gm-Message-State: APjAAAWHFaCyiyjQIWKxt6MR8xuQg/grGd0VPAkdXEN+HjAZy4qwmMmZ Vnt8unYceg9E8O6j5igbh93j0ZZVfE8= X-Google-Smtp-Source: APXvYqyWK5JLIEH4Aot0zwwnFdOFDUSPEXn5PIl3aMJ6QyYPCgee+nl83pu+pC0gRIovAmkr0Lgihg== X-Received: by 2002:a17:902:bd94:: with SMTP id q20mr8740855pls.307.1560543596110; Fri, 14 Jun 2019 13:19:56 -0700 (PDT) Received: from [10.104.134.41] ([155.100.47.1]) by smtp.gmail.com with ESMTPSA id o2sm5674496pgp.74.2019.06.14.13.19.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jun 2019 13:19:55 -0700 (PDT) Subject: Re: vacuum/reindex To: pgsql-general@lists.postgresql.org References: <94351d94-178b-7ffa-2715-3f50c942e5e0@gmail.com> <7a332168-c7b2-982e-6e93-64828d5c9ea0@gmail.com> From: Rob Sargent Message-ID: Date: Fri, 14 Jun 2019 14:19:51 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <7a332168-c7b2-982e-6e93-64828d5c9ea0@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/14/19 2:13 PM, Ron wrote: > On 6/14/19 2:55 PM, Rob Sargent wrote: >> Is reindex table redundant after vacuum(analyse,verbose)? > > Instead of "redundant", I'd call it "backwards", since doing a > vacuum(analyse,verbose) on a freshly reindexed table seems more fruitful. > Does reindex remove (dead) row versions as vacuum does (in the indices)?  Maybe I don't need reindex at all as I do NOT suspect any corruption - was just rebuilding after having removed 15M data rows in vacuum