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 1niOfl-0006ET-1a for pgsql-general@arkaria.postgresql.org; Sat, 23 Apr 2022 22:56:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1niOfj-0004RD-Iz for pgsql-general@arkaria.postgresql.org; Sat, 23 Apr 2022 22:56:11 +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 1niOfj-0004R3-8N for pgsql-general@lists.postgresql.org; Sat, 23 Apr 2022 22:56:11 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1niOfd-0006yT-Lk for pgsql-general@lists.postgresql.org; Sat, 23 Apr 2022 22:56:10 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 827663200D30; Sat, 23 Apr 2022 18:56:01 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 23 Apr 2022 18:56:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1650754560; x= 1650840960; bh=irjAP1DqinyvWDxQYEfsa6HLKC/j38Ja7wolLKxDUx8=; b=I njAb3+WUn/kf/bQh8+ts5hBuI9EPsF7OVPYQVuW3Akr7WR8oFX8NkCWVbjuFGpQB bQUfbxGDT8W9q3vNZsJzmi7uprbTc1WbsY9N1dZn+2PLCMx3VZ4HG5wujs2CvghQ AskHTuOWtRbM550r1kdHEuU1Uxrt/Yy045lV7cMPxykEXoaMY+JHTpg3lbo/LOAm ve83oSe7xM4XuDFubzkCX249kIyiN573rOwOF+b7qh8RGv8RJKdJV/ml6wrmG8F3 +WmbB/HNS8Z1cG/HAsIBQ7RL3vsek6yFTRIrPLMomtpvOXQ6LRls02B/HoaOz0dv R98W7uOzb3uasRzFm9lrQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1650754560; x=1650840960; bh=irjAP1DqinyvW DxQYEfsa6HLKC/j38Ja7wolLKxDUx8=; b=bY5+RzUZg1a++eBjFlUgWe+8SOb4U Za6IZ7cu5HIGNO5k6HZ/8ep7fknO6L4XgNF0c8HhkjbeNKN0kjExI+JL6wASC0Jf WmYkCihFGAk9d8jFcAPLmnuknbgBIFhkZfHE/k5DjwqEHxETp524kEzGWsK2tatp Zf6n/lUNCwN4mxUsNdEpve6gVHbV3QfH5EIrd35tNuHJ5qtcoXBWQUz+LKbckN/H 5zYatVkvvHlUZGWMTbwvP5bzfVdPVvEUYjaVFZ989zPMKNykqrhpF/lrFM8gY4dB 4DGo/LKmqJRQXSfFElcQgkjxMK84DqBCJOKl8V/4LGHXsYK4CbXh/F6NQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrtdejgdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpedtgfdvgfeikeeftddvffekvefggfevgffgheelieel tdejffffffehgfffhedvffenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhi rghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 23 Apr 2022 18:55:59 -0400 (EDT) Message-ID: <8019ae53-c90e-7ddc-3827-5d923a4bd8e2@aklaver.com> Date: Sat, 23 Apr 2022 15:55:59 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: SELECT creates millions of temp files in a single directory Content-Language: en-US To: Peter , Tom Lane Cc: "pgsql-generallists.postgresql.org" References: <3987446.1650747468@sss.pgh.pa.us> <3989726.1650748421@sss.pgh.pa.us> From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/23/22 15:40, Peter wrote: > On Sat, Apr 23, 2022 at 05:13:41PM -0400, Tom Lane wrote: > And btw, I probably lost-in-translation the relevant info about the > running version: > > Name : postgresql12-server > Version : 12.10 > Installed on : Mon Apr 4 04:13:18 2022 CEST > Origin : databases/postgresql12-server > Architecture : FreeBSD:13:amd64 > > | Please see > | > | https://wiki.postgresql.org/wiki/Slow_Query_Questions > | > | for the sort of information we need to debug performance issues. > > It is not a performance issue, it is a design question: You inflict > pain on my beloved ZFS, and as a lover I react. ;) Be that as it may, the requested information is still needed. -- Adrian Klaver adrian.klaver@aklaver.com