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 1lvfJ7-00012V-Vv for pgsql-admin@arkaria.postgresql.org; Tue, 22 Jun 2021 12:15:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lvfJ6-0002aA-DX for pgsql-admin@arkaria.postgresql.org; Tue, 22 Jun 2021 12:15:08 +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 1lvfJ6-0002a2-0z for pgsql-admin@lists.postgresql.org; Tue, 22 Jun 2021 12:15:08 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lvfIz-0003fb-CV for pgsql-admin@lists.postgresql.org; Tue, 22 Jun 2021 12:15:06 +0000 Received: by mail-wr1-x436.google.com with SMTP id h11so5902787wrx.5 for ; Tue, 22 Jun 2021 05:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=T7X2HUG7c9ausWOVKOQtizxNkM5LhBqjVXoYlGob2Xo=; b=Z/whREXYjOjxeY3D8JYKZre/3CcHuefoVCYEC0Abt5GWYGTTCLleMyx+1B4LozFC7n XRdF1N1B+xPEzCSgRTOPlkw8UVf87E+AXvYIoqV/U09VHdtdidilBK1Fv5vAG3HzSaAx 7nDuuKCpLjcw31qIUKjgY6SivaX42Sn6HvAEJSRldsNpumcWgqCk/xipnNMjDAqGsZau mQNni78mEPT8vTSAey8tALsy25wtV9hRqOArPjKJVhb2c7SeXLQ2msSvU01fWu9Dn3F7 BGUR8THkgRBLFoe2alPOHY6xqZSlwLIdEWytekqvZcFzBRUy4YHCOKvtzJ4JVh1vN2vs kDJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=T7X2HUG7c9ausWOVKOQtizxNkM5LhBqjVXoYlGob2Xo=; b=gM3ulZeDOKhV96Zt8GVPfB3c9lxPGGSBp5yzcjcU67sOYniKwPc2/nOlLm/BW1+Xwd 8kUqeFMMDaRsoccv7sP2Y5hbxLXWcFzhWXAZ5GKLAs3lOF8NW68ms9/Yl+gM3AQcE+4Z JGrOtIChKBDMZPV6UT4Az8trM/YTgOq4M1gFntuZlZYl45yeu9/ljdB8IHzaW7Fg7R15 bQJbzLG0eccmqlFsYOvogLLsr6LiSSCl4vvXN243E5NzcwSabOWFQ064yL8fB4Kn13p4 6qkjV8B7TViL+JXPPwo9mFy+FQF5b70vTwXC7G12sqrwh8mZvJYTAEX0ndN8YO9o3tH1 qgIg== X-Gm-Message-State: AOAM5329jGH99VhHLJhAX6tLJtzLCoTYUdeUXDVSuVkqGFIUIDfqrAAE RPK9dvR545qzVBOSNznmpwE= X-Google-Smtp-Source: ABdhPJz/7jzmSvZZn2cY9OvGx/Kzln0E4yO18FFAnzV5mJ6odq0b6yYKnrIHnCsXKSWl/aTlIHAVyg== X-Received: by 2002:adf:ea8e:: with SMTP id s14mr4405726wrm.38.1624364099864; Tue, 22 Jun 2021 05:14:59 -0700 (PDT) Received: from [192.168.1.8] (net-93-66-70-148.cust.vodafonedsl.it. [93.66.70.148]) by smtp.gmail.com with ESMTPSA id w2sm18310109wrp.14.2021.06.22.05.14.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Jun 2021 05:14:59 -0700 (PDT) Subject: Re: Temp files for simple queries To: MichaelDBA Cc: pgsql-admin@lists.postgresql.org, Julien Rouhaud References: <45cc44dd-b830-5df5-1f09-171e9874bbc0@gmail.com> <16aa733d-bcaf-0aa6-f3f0-5206de695e92@gmail.com> <20210622115506.o2u4u5krplxxc54k@nol> <6fab4381-4a47-0b99-43a9-1ff1c97efd39@sqlexec.com> From: "Radoulov, Dimitre" Message-ID: <2a8094c3-e2ea-b2cb-59d5-c8a31f1cbe67@gmail.com> Date: Tue, 22 Jun 2021 14:16:31 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <6fab4381-4a47-0b99-43a9-1ff1c97efd39@sqlexec.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: Archived-At: Precedence: bulk Hello Michael, On 22/06/2021 14.00, MichaelDBA wrote: > I'm wondering if bloat could be causing a problem.  Perhaps more > blocks are written to disk including a lot of blocks with little or no > data due to bloat. > Using the query suggested here: www.citusdata.com/blog/2017/10/20/monitoring-your-bloat-in-postgres/, I get the following: databasename | db1 schemaname   | schema1 tablename    | t1 can_estimate | t est_rows     | 160 pct_bloat    | 18 mb_bloat     | 0.06 table_mb     | 0.352 So the bloat doesn't seem significant. Best regards Dimitre