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 1m3Kq6-0004lM-Fz for pgsql-performance@arkaria.postgresql.org; Tue, 13 Jul 2021 16:00:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m3Kq5-0004JQ-Fi for pgsql-performance@arkaria.postgresql.org; Tue, 13 Jul 2021 16:00:53 +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 1m3Kq5-0004JI-7h for pgsql-performance@lists.postgresql.org; Tue, 13 Jul 2021 16:00:53 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m3Kq0-0003jZ-Fs for pgsql-performance@postgresql.org; Tue, 13 Jul 2021 16:00:52 +0000 Received: by mail-ej1-x62a.google.com with SMTP id ga14so27404412ejc.6 for ; Tue, 13 Jul 2021 09:00:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=XFBw1uf/GWgV7n6lAKtaPkgbaWkYJcUt+VfvmUqS7D0=; b=G/sBa1iJ4dKmz5lGLxUQ4QLi3XeNH3GEgqS/nig3iOeKgajvZdX35qzb9/sCOMOutd vnOuyUBEXwf5OH+cNZu1sbUgS3nXfuDxhrtiDQ9e1EFy7Gs7VX14AufDxTuVr9OGjzij XJYbQQnN2Vbc5elH6rK7HUu7eyAlFJEEuFKFhKUkz75u+zjqw+t2WtOpZSu814emlz06 X4smAUgutcaJ+x/C09beWJo6miS8MPN78JTnVSJMaEc2JmZPVBniSJ7AB94vwh628Jlu Lb5naSZ+w72pxM3vHW1PHuTurZpMH4bLftzP6HsmY+HsIO4dQgYxWd7ThwOaDIm3wztN CFSA== 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-language :content-transfer-encoding; bh=XFBw1uf/GWgV7n6lAKtaPkgbaWkYJcUt+VfvmUqS7D0=; b=unINyjqWZ8rlzO3iQ5mAw/R3m5lLS15G9LL+0xv104uyRH+5EVQaDg5PkreRr5RiuF NtceaZpm/ejtXeKPglioQmb9jcq8LkxLBnnaHFaGEAilOPPD/K+NEir3fZWR+wS8LZJp USxZqgRJhAgi6oSQhNeBWbg8FARJfunYWXT5dZLf6b/hWf02YSgFfH7KtPVFUGeRMDCN 2J8XKoI66/rSE8cTt1IA2y6oeQSJArBCvah0fcU1mEK9kuUSN0xqDUN8jioynLf9XWwC HqD9+0XcF+T3C2uaKQon2mXgFANYn1LXaOuKqnCSlQXQKTH46xxB2yrUjL/S+MHOr/rE HG5w== X-Gm-Message-State: AOAM5337QuE/oNp8KBkcvw1uD0qe4ft/f02/cLus1i0wqfF646QjtQW4 QsfnJgQeX7B0V9wI3e4BSgWFqo4gQXUhSgX17HWMDbbqeroaEA4l43W22HwrrwkV72/i9p9Kfc0 gZex00lIH6MuunkFffRB4Oag0K/S+TJW5dJRKoOza8mQAmFmAF5n+8PGFORkZg+3wbZ/DElnA2L G/0n1Iw1lnxJrLNRsD7OqL0I6nnuG89bfWW8o/AKlYvJHAQ5n8RjOVFDt7Fczsl+oyyn0yOJ34H 0h1l6TxwSYSS6nc7KFRmCRpRHT+jP7D3VzqCa2W6rO7ZCq2 X-Google-Smtp-Source: ABdhPJzLAbzjLAnOVoduLWUykvv8fEHXN5eTP40nZZbbjBLg1L7fLdustYhpyRA8os4qcKz34Vt8lw== X-Received: by 2002:a17:906:58cc:: with SMTP id e12mr6621755ejs.279.1626192045955; Tue, 13 Jul 2021 09:00:45 -0700 (PDT) Received: from [10.137.0.18] (static-84-42-175-93.net.upcbroadband.cz. [84.42.175.93]) by smtp.gmail.com with ESMTPSA id q9sm8304952ejf.70.2021.07.13.09.00.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Jul 2021 09:00:45 -0700 (PDT) Subject: Re: temporary file log lines To: Guillaume Lelarge , MichaelDBA Cc: Laurenz Albe , PostgreSQL Performance References: <4827fef49e0d0410eedca61e235a16efc1d835de.camel@cybertec.at> From: Tomas Vondra Message-ID: <64634f8c-1903-3328-291e-617a80096d02@enterprisedb.com> Date: Tue, 13 Jul 2021 20:01:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/13/21 9:29 AM, Guillaume Lelarge wrote: > Hi, > > Le lun. 12 juil. 2021 à 14:13, MichaelDBA > a écrit : > > hmmm, I think spilling over to disk for temporary tables is handled by > an entirely different branch in the PG source code.  In fact, some > other > folks have chimed in and said log_temp_files doesn't relate to temp > files at all use by temporary tables, just queries as you mentioned > below elsewhere.  This seems to be a dark area of PG that is not > convered well. > > > As far as I know, log_temp_files only relates to sort/hash going to > disks, not to temporary objects (tables and indexes). > Right. log_temp_files does not cover temporary tables. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company