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 1lZxyI-0005Wb-MR for pgsql-general@arkaria.postgresql.org; Fri, 23 Apr 2021 15:43:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lZxyH-0000Yk-Jh for pgsql-general@arkaria.postgresql.org; Fri, 23 Apr 2021 15:43:57 +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 1lZxyH-0000Yd-Cf for pgsql-general@lists.postgresql.org; Fri, 23 Apr 2021 15:43:57 +0000 Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lZxyF-0006uY-Iu for pgsql-general@lists.postgresql.org; Fri, 23 Apr 2021 15:43:56 +0000 Received: by mail-oi1-x229.google.com with SMTP id e25so19614196oii.2 for ; Fri, 23 Apr 2021 08:43:54 -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=5idEfC8Br1KwuusOR1Y1I2WcVZsuxlrQmZAnHl+94ks=; b=Uqmvf4IiXYwLXynZTYq+nbeefBHsImVE/ssmEGsWiEoZx1OSQfIhQrx7k1TjXfLQSe CSQPJpnADvOcQmiFjjSJA3QZH1q5yIvVNef+zLTiLrmmeRp+YJTP7+e+/jmChlxrssj+ 9GfFbdSAtUzZUhihh/hlQEM9Zi8pL+XkZcgJkfSvIq264VH7Mt4BddoIaC9Y8FAWKc85 cx7k7vAFdlr1uJXYG/zOeOnZK4bJOO30FtaiHh4i3QCglnpsD9Uh+fayTeG03Y/nEHmQ 9WrVwVDkuzl99fs0QHqYyoSYKKhmC0a4OWw92DDiRU4+NdlPakp3TCE472/LFgoUWSLP XRjg== 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=5idEfC8Br1KwuusOR1Y1I2WcVZsuxlrQmZAnHl+94ks=; b=Ow5a9oxa5fngqIBcunG8EF8doKuMLnkxwuwwbqMLtmwcTJb0F/Al3j9Kp1Sq3gEicQ R615TdZes58wOGIXLmznnwtrEkLsyyuXHp5IVARodTGwapz2MVFNR0hunpUDtEl9D0TA bcDUvRj0YMpr2XKSyDlqkypAN0003xtuKOim/w7y+QuIXCwjg/WXP7tYg3YXOghAY+F8 cHbGhwH/3ynmIlx+UP8K4ilgMR4mPLdYCVpn6t6LsyAXiqs+402i4OxaY/sMBPyyCXo4 cnsqD4DUxZ8L7a6ITnit+5Qr0N2Gp/VJMx/MwNMvuMYR2BloA5wELSapH+LG6ARrIjh1 hTdQ== X-Gm-Message-State: AOAM533ZJhSkMLYUsq9eWr6okKeBtSwPVdnhW+u67x90i2reIqJWIV0c A/fEmx9uizq2H0gvAZ0q7Mrve3/v68s= X-Google-Smtp-Source: ABdhPJwaB+9MJ5fyd5H8rYmvhqRRm5uMvzbF95D7ydFTI2y/b59n0EHerwqf4fE51xNkxXLw9nRR5Q== X-Received: by 2002:aca:ea06:: with SMTP id i6mr3326214oih.82.1619192633174; Fri, 23 Apr 2021 08:43:53 -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 t19sm1435914otc.10.2021.04.23.08.43.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Apr 2021 08:43:52 -0700 (PDT) Subject: Re: enable_seqscan to off -> initial cost 10000000000 To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: Date: Fri, 23 Apr 2021 10:43:51 -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 4/23/21 10:39 AM, Luca Ferrari wrote: > Hi all, > this could be trivial, but I would like an explaination: if I turn off > sequential scans on a table without indexes, the same access plan is > increased by a 10000000000 factor. I suspect this is a warning for me > to remind that something is misconfigured, or is there anothe reason? Maybe I'm missing something, but in "a table without indexes", what else is there besides sequential scan? -- Angular momentum makes the world go 'round.