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 1m1VVA-00043t-NT for pgsql-admin@arkaria.postgresql.org; Thu, 08 Jul 2021 14:59:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m1VV9-0007cJ-EB for pgsql-admin@arkaria.postgresql.org; Thu, 08 Jul 2021 14:59:43 +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 1m1VV9-0007cB-5g for pgsql-admin@lists.postgresql.org; Thu, 08 Jul 2021 14:59:43 +0000 Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m1VV6-0007JL-LC for pgsql-admin@lists.postgresql.org; Thu, 08 Jul 2021 14:59:42 +0000 Received: by mail-oi1-x22b.google.com with SMTP id j65so1966037oih.5 for ; Thu, 08 Jul 2021 07:59:40 -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=zmoFrWjEBtuYTqh4tHGfCpH1g/Yb5E/U1Qeujy647Iw=; b=vdptfoOAnozq4L+oshm3k7xKdJF/eYucr52QAbtj/GC65Y8hszF3V/etIgLowP+QQb N/l4SuWUWOsGdyPplryTf7tUiwO2/FE9fP/gHDvOeJWkhgVxUgmiq6tDb8jFBs3uLaye rgy/MU2sc0H9ramnkiMhj0C2JveTvskdYXva3I0g0PyYF+yYoOv56qGpzgeqOSA/9sPS 5qh7LGh5TXaBoEH6Bm75K6oE+GgmLIkphpWSuDuSRbbqX2I1FZR5Q0hw4+7AG76gIf0y uHGjom//cTw3nIyFPIujs43QnOmzbWi02DnknnmvY+X17ldYl9Coq/yUGqRYFEBwmowz p5KQ== 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=zmoFrWjEBtuYTqh4tHGfCpH1g/Yb5E/U1Qeujy647Iw=; b=LastKNbKaVxpyxHz0fHoWssnfSdUuIpp8JHWw1EPUbaThU/auNRguInFmXlZxeoYWu jniMjATO13AHqGjqw5Gq6v1KUm8azNZQ253N3elkEJjEPHNqMzJOW/OPQASwsAF2UEKR pWe2d0YjsJneZhkD1Zk/aCgDVzWh89E8g1yvxo7C2HksyOYFiM0CqZBuWze1jHAWZgfr vJWZmWmSuBlhZu9KSLkIMlMx328dViIPSmdQ3HUbfpyiMpn3wMqjrTmt6tau3qJsV3Y7 XVlrsDqzXPzj3VkfIo/SO8F9tWiBDz5vSYCCyDBtyuSyDAqgvruDuP9MsruECFCNrIgf Vqzw== X-Gm-Message-State: AOAM5314qBQSqihRISXL5SMeUTGlmH98p6hkFDvd1yqty/JR37v/qIKT JDDaD1uMJOuZtfNa9Ems4kHLR9mxw8njxA== X-Google-Smtp-Source: ABdhPJzRwNAitnO5D2W9OvgCWciv+NahY+Z/hSPx6/6rN4+7SrZPzfxeg2PGZEZ8bUeFYpmrd1sxtQ== X-Received: by 2002:a54:481a:: with SMTP id j26mr3856100oij.117.1625756378563; Thu, 08 Jul 2021 07:59:38 -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 k24sm571852oig.13.2021.07.08.07.59.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jul 2021 07:59:37 -0700 (PDT) Subject: Re: PG13 Autovacuum for Insert To: pgsql-admin@lists.postgresql.org References: From: Ron Message-ID: <0f43ec20-fb70-c8e7-b00f-be134e9d3c21@gmail.com> Date: Thu, 8 Jul 2021 09:59:36 -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/8/21 8:38 AM, Keith Fiske wrote: [snip] > Vacuum also keeps the freespacemap and visibility maps updated as well. > Not quite as critical for insert-only tables, but it can still influence > query planning. Having an up to date visibility-map can help index-only > scans happen more frequently if possible. We've got INSERT-only tables, and the query planner only used sequential scans (on a freshly loaded 6TB database) until I vacuumed all tables, -- Angular momentum makes the world go 'round.