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 1mzmSA-00025B-05 for pgsql-performance@arkaria.postgresql.org; Tue, 21 Dec 2021 21:13:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mzmS8-0005qQ-O4 for pgsql-performance@arkaria.postgresql.org; Tue, 21 Dec 2021 21:13:44 +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 1mzmS8-0005qH-9r for pgsql-performance@lists.postgresql.org; Tue, 21 Dec 2021 21:13:44 +0000 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mzmS4-0000Ws-90 for pgsql-performance@lists.postgresql.org; Tue, 21 Dec 2021 21:13:43 +0000 Received: by mail-io1-xd2d.google.com with SMTP id m9so310907iop.0 for ; Tue, 21 Dec 2021 13:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=A7jIFgyiEJK+U2VU6UQ5wgpjyI/b1z637QoIMbaBCDs=; b=tYIxgwzvn22NQWWDRA6ywm3TUnJRxagNzubIzXBa/6qq69mKIdS/k2Mtp/xOL1BNDV Stfz0on6z0W2Un/b3EGGzk7Tqjg+iKnyCZkZ36fmdsVWsJPUQsZ7aNuVHXuFkoYBG6SL ebJSEbFBaJ92WRHrS7WxlPdl7GV3c6bmrVRLcqJCYeP7y+LSQdR3wrPp/MmVWRH72unb QZahgD5pUO0FtBWjHaMSyue4Kvl8vP1/NZ682DWLdJCkIPhMsqKkfXm+g3uKqOGwj8FM cUFa5l8EQVvlTmuPxeJ7b++x2/31xwdAlDFRTek3Qa2KLeZCfN9fUti+PN/1N2XUetMN phMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=A7jIFgyiEJK+U2VU6UQ5wgpjyI/b1z637QoIMbaBCDs=; b=yzBuvhlMMIt4UMHgcAW2HgBUfiJ6YBfYBgY7Ab+HEKZoUyVcuKvVEj8ASsXUD8uZj3 AcYLwWGI5xhbuwJXU+zzUDM+kYSwMCkhE2KGHW7NDlpg1ATtvsOK5eLmSClOfvUp3+uq e1huGdLAi3WMfChfd4OktBiIu5LW4xbg9HQd6y1pxkTnHoMYZ152KscmmRZn4b13ph+m JymE9HmQPwn4U1smWbfV3vl7NcGqFaiPJhT3lVboDadKqyfpO/FTBJKTPRHCVRPzmX0J xYW+QlN4VosN34/+pcjiXb1FRl22y0PZRQHpUlr5t7JzFljrm3vRG3/ucpfP1I+coYOs OAGg== X-Gm-Message-State: AOAM531sYgDM9x/ppHZZ9trvsAYVsd6StoFWVAPJ5Vdaw/uW96nErrs8 VqefXv9GlTJwpkWeTIUNXOEiCQ== X-Google-Smtp-Source: ABdhPJyPTOkZIiPeLIj7ByN6iwaJCMcPdunNNPilWxRgWml2SkhjPMNeJpAH5hYezl63LOZOLuOOzA== X-Received: by 2002:a05:6638:130b:: with SMTP id r11mr1982563jad.257.1640121218909; Tue, 21 Dec 2021 13:13:38 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id m6sm9938ilh.4.2021.12.21.13.13.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Dec 2021 13:13:38 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id B97D4800612; Tue, 21 Dec 2021 15:13:37 -0600 (CST) Date: Tue, 21 Dec 2021 15:13:37 -0600 From: Justin Pryzby To: Tom Lane Cc: "David G. Johnston" , Lars Bergeson , pgsql-performance@lists.postgresql.org Subject: Re: Query is slower with a large proportion of NULLs in several columns Message-ID: <20211221211337.GB17618@telsasoft.com> References: <2688019.1640051519@sss.pgh.pa.us> <20211221045138.GZ17618@telsasoft.com> <2704544.1640062888@sss.pgh.pa.us> <2707817.1640064786@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2707817.1640064786@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Dec 21, 2021 at 12:33:06AM -0500, Tom Lane wrote: > So now we have a real mystery about what is happening on Lars' > system. Those numbers can't be right. I realized Lars said it was x86_64/Linux, but I'm hoping to hear back with more details: What OS version? Is it a VM of some type ? How did you install postgres? From a package or compiled from source? grep -r HAVE_CLOCK_GETTIME /usr/pgsql-13/include Send the exact command and output you used to run the query? Why does your explain output have IO timing but not Buffers: hit/read ? -- Justin