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 1lyI4P-00022Z-EW for pgsql-general@arkaria.postgresql.org; Tue, 29 Jun 2021 18:02:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lyI4O-00056c-DQ for pgsql-general@arkaria.postgresql.org; Tue, 29 Jun 2021 18:02:48 +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 1lyI4O-00056U-26 for pgsql-general@lists.postgresql.org; Tue, 29 Jun 2021 18:02:48 +0000 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lyI4K-00088f-Sj for pgsql-general@lists.postgresql.org; Tue, 29 Jun 2021 18:02:47 +0000 Received: by mail-ot1-x32e.google.com with SMTP id h24-20020a9d64180000b029036edcf8f9a6so23564103otl.3 for ; Tue, 29 Jun 2021 11:02:44 -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=9Zn5HU7OQKzbH8VPPn7Ji25mjzskqK67xNPoG+B9GW8=; b=L1MDOp6XkGQUqRzKZcnoQN0QEcJzJf/QXiGfJCSVPiMLBiKVsWBbPP2t5WFlu+dM0h Gw3DNZrZKy/yMGcmg1I9ksA2q5+eAALpBogEt1/1PRb73a1bKAUcobsij6Ak8fGMzujC 2zBxqsu3l0aW5b3pCMFKwpuLL7D358Z2E9Mme6WHRJST1FSdV4oUK5UdxSpbLJTwWebK Voi7Zoo61AtPSTygSop/+zA2tG4nJ0s+YycCCMHU0mG6yxxe10k31p1Gr4EJUAPKs6rR vV1LUboiwU6IjhFIVLrkcfu2GJHr6yMBBB2aKcxVug2Ib9Anz+58hxmHN1HrC6QNe+5H Zrqw== 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=9Zn5HU7OQKzbH8VPPn7Ji25mjzskqK67xNPoG+B9GW8=; b=IDXiBdXSGpttdGaE+dq5vQMRI/ODU2CXqly6Ip+9xQfdu3WIj8uxCXOT7tirYTOiGQ 0obCiw2xE2LuRH93+Pzpi5sGjHiyvcIfym6TU1tLCbuKUvu+75/l5ruKffWmLfsJZmT/ FhqyLy4ZmJopRLrZtgVtldRxgVACO2BWWNgMQi4P/hnK4H2QGcNUdII+9zmbq3hOkoDR Deuh48cZoAQ1E4Z5h6CPioNBICZlxscKUPQnydlDotlvK9jA+D4MFXyZ3zOtvphwrdSW 9ROhbm5S39GfMd9nqQ/0KWaLxrfotwBrOF9WtyOedChGm2xLLNB1CcJM5lrxbO37Ohvo MAwQ== X-Gm-Message-State: AOAM533/1qAB2495v9XJA7fHn2rNyqpjWLSHPNpmzyd91ly8v1HMSALE pjzS79NiuQWqaBlSbY3FZV+TYEYnZUDsLQ== X-Google-Smtp-Source: ABdhPJwSIk8uu4XLJTt01JA+PLpcQz72h2Npz1MW6SCTCBo2ADYdgIMhKBWAEJ8En4eQXfOF8ncoxg== X-Received: by 2002:a05:6830:16d0:: with SMTP id l16mr5500464otr.39.1624989763834; Tue, 29 Jun 2021 11:02:43 -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 m3sm3235162otf.12.2021.06.29.11.02.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Jun 2021 11:02:43 -0700 (PDT) Subject: Re: Do table-level CHECK constraints affect the query optimizer? To: PostgreSQL General References: <5f718120-a286-71ca-3d31-7bad70f0194e@gmail.com> <374d530d-ec98-f1ea-8d41-21e661aa9ab4@gmail.com> <449566.1624984976@sss.pgh.pa.us> <69232971-4992-6df9-d629-d45e8a176526@gmail.com> <452839.1624988762@sss.pgh.pa.us> From: Ron Message-ID: <92045cad-cede-0e90-8d22-62c847f3104e@gmail.com> Date: Tue, 29 Jun 2021 13:02:42 -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: <452839.1624988762@sss.pgh.pa.us> 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: Archived-At: Precedence: bulk On 6/29/21 12:46 PM, Tom Lane wrote: > Ron writes: >> On 6/29/21 11:42 AM, Tom Lane wrote: >>> If there's a significant difference in relallvisible fractions, that >>> would point to something different in your VACUUM housekeeping on >>> the two systems. >> Prod is brand new.  Loaded on Saturday; we saw this problem on Sunday during >> pre-acceptance.  Thus, while running ANALYZE was top of the list of Things >> To Do, running VACUUM was low. >> Is that a mistaken belief? > ANALYZE won't update relallvisible AFAIR, while VACUUM will. > So if you are depending on lots of IOS, you need a round of > vacuuming. What's an IOS? -- Angular momentum makes the world go 'round.