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 1joapf-0003eJ-Vn for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jun 2020 22:58:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1joape-0002V1-Ry for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Jun 2020 22:58:58 +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 1joape-0002Uk-Ku for pgsql-hackers@lists.postgresql.org; Thu, 25 Jun 2020 22:58:58 +0000 Received: from mail-qv1-xf42.google.com ([2607:f8b0:4864:20::f42]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1joapc-0004Gb-AH for pgsql-hackers@postgresql.org; Thu, 25 Jun 2020 22:58:57 +0000 Received: by mail-qv1-xf42.google.com with SMTP id u8so3661291qvj.12 for ; Thu, 25 Jun 2020 15:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=q1mQs6uc5S6GfPnAEhmRx4URNpNJguvFn5A8FYrrKKs=; b=ggcQnY2H3wmdxHwRRWtiNfwMYRsyCkw+n9kJzy/vDrANYYqv66AUI0cR9XC5sRxe4C h23BiXTIa457xYApjKPVp8LyZXl6L+KjfLNbvbhVM70466VfE9/lJ/kzFjTEOQPXug2K 6mvwi4PYpo1Chv5P1vuQltcMpn4kZYUZxYQZRrze251PDXPruch7ZyKOa2y7la24ZO9s wXKEdMcSSIsxP47St//HNKfnIVT7GvNkjWt4gxq9+/2N3qQrBW7UJPZS1lJnVsZ/X5xq OQF0vbpOLlYqjojAPGdIo4ATfDo9c6ImwjnZ8SDA61oJpuJcnp/A2frYjVWnKkPSPwgH IDdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=q1mQs6uc5S6GfPnAEhmRx4URNpNJguvFn5A8FYrrKKs=; b=hLcEP1+C2MKYzycJBBaQHwCWQxRzI02DT04muq/QUW+efYCmFzgwTCbMmC4KDoNFMz SotS3dJ2qBrUWZKBDbF4sj4Vx0bAYq5LGpH9xlkQHnBNBq5ZLELqK6vv90yNDIbp+9yg XEvWWzRZCb8POlHvj9abCZP/ce22FTQwWlqER2IYXkHPCkksTBIHrgRWsuHcPVOL/7lQ oOFs6L44OQJRCXZPBUmp6M/27QELdOFnMpGizwIHTuUzg4l0+9Iym76Myc1UBiBEGV6g H4lpK4HN5cjb57npw+bw5O+IGh+Z4ADVjCM76WPfFgUXBRXloZ8STTd23y3/9glLSzAJ 9J7g== X-Gm-Message-State: AOAM532OV49pKfnJ+NNw6GIULi9vQ9pXNKFY2wW7E1iOwR3jHstnCnEq muulplDwiv8An1GPgm9OUVLL+g== X-Google-Smtp-Source: ABdhPJwodHMrvAFRkbap0Rx3Sp0Lmcc8Msc3yRWlOecCJaUcGB2GTiByw6ylAzmb7qGjwru0Lf4img== X-Received: by 2002:a0c:b315:: with SMTP id s21mr433930qve.53.1593125935488; Thu, 25 Jun 2020 15:58:55 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id d8sm6982468qkl.118.2020.06.25.15.58.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 15:58:55 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 4D82A2A3A8F; Thu, 25 Jun 2020 18:58:53 -0400 (-04) Date: Thu, 25 Jun 2020 18:58:53 -0400 From: Alvaro Herrera To: Andres Freund Cc: Bruce Momjian , Jeff Davis , Robert Haas , David Rowley , Justin Pryzby , Melanie Plageman , Tomas Vondra , "pgsql-hackers@postgresql.org" Subject: Re: Default setting for enable_hashagg_disk Message-ID: <20200625225853.GA11137@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <85F9F4F0-918A-457F-BC9E-F2AC2EFC1F86@anarazel.de> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jun-25, Andres Freund wrote: > >My point here is that maybe we don't need to offer a GUC to explicitly > >turn spilling off; it seems sufficient to let users change work_mem so > >that spilling will naturally not occur. Why do we need more? > > That's not really a useful escape hatch, because I'll often lead to > other nodes using more memory. Ah -- other nodes in the same query -- you're right, that's not good. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services