Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jEi2r-00023J-9V for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2020 23:24:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jEi2o-0002FG-Pv for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Mar 2020 23:24:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jEi2o-0002Ar-AW for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2020 23:24:14 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jEi2k-0000Su-JX for pgsql-hackers@lists.postgresql.org; Wed, 18 Mar 2020 23:24:13 +0000 Received: by mail-qk1-x741.google.com with SMTP id f28so232238qkk.13 for ; Wed, 18 Mar 2020 16:24:10 -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=kHF3yMxdL++QMHzYYASybzJE9/1FGWKp2RafQXsI1y0=; b=bbtCLeGFzueLgYBKI4a2RLDBVg89W6eCE5WWvpA7Xuiaa+oW3/LK1bjWL/L5mHpbNO pT8/NxxJIqJRqhIytheyU3AtbouPtQxqNAmcQkAHNx57hboJQ62xjjc1OUR0Yq4HCoH/ RyQzDsUUeAYqF4Wds6MHfaroUYwx44UoqwkteIG5UeGIjVwHedQ4YdTvbdXVUBii9m37 ecqlyO/aH9DrHf++JEViU3q95qHipWkIS3JnIMbUfsckxcOmBpZXH0LPMpdtfVq+z/Of JBx/R2ChphCm1sd8Qxp67r3F5Ljl/XLWAIIv47EHhpKPgVO0/U1J+nJ7+Bf8PID1F30u A9xg== 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=kHF3yMxdL++QMHzYYASybzJE9/1FGWKp2RafQXsI1y0=; b=AGPcwpIDNeYz1ivFJQD5RHl7U6ZVLkWnMxQK3ge/9x7WVL5xatiffSDHOA24XEZg2i v7PqobT3v7b4kc+ZQBa/njqU5fVKi3OOfDHE6/Sd/QGrwhanRB1CQuV8GRiVSexBIrZL x9bbbSz94bCklv6a1LL/dfW/r8qlxfrnzYp/h44fTHkKPtUsOje1rFGL+XYBey1qxihq 2iwKQ8TxkJyug2ncWO31HSYodKtjFfEwjoEDRWfxlFKaVH9MV0oX+sktEILpbAsAun5Z +11ZDMz6amLnctE8AMM/+LFXnubSC5ePhRwGK5FkveWILzbh7ZLaPxzB9ZQhf+RR2iW6 MRrQ== X-Gm-Message-State: ANhLgQ3G2tNRpOkGyOBrgVJmL03jfO5QUJIiD2+JJdswtMQOqFIDuIBh a5GLHiDEojA026gq//2Y8XQvRz8xTnZSW6sqy5XMdVMLN9u5qYzVoNpgwpushuDVs7RzMPZV3Db rgKJD9BZ4Sk/2WUkDK0SNfGUVJpVy1nMdmO4VMSoQU6WrIum291ZkKtuNLKr9kSlJzmm8nZcsbR 64Yg8InX+F+MviT/rs X-Google-Smtp-Source: ADFU+vsecfD0wHCUjx76IGAPWhDNrcYc9NHztImm9pBPzmTbj9ZxXk/fvZ92+NKtt7Ef+DT5eR6blw== X-Received: by 2002:a37:4d56:: with SMTP id a83mr393312qkb.40.1584573848226; Wed, 18 Mar 2020 16:24:08 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([201.186.208.119]) by smtp.gmail.com with ESMTPSA id j50sm220963qta.42.2020.03.18.16.24.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Mar 2020 16:24:07 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 86F4C300819; Wed, 18 Mar 2020 20:24:04 -0300 (-03) Date: Wed, 18 Mar 2020 20:24:04 -0300 From: Alvaro Herrera To: Jeff Davis Cc: pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: Disk-based Hash Aggregation. Message-ID: <20200318232404.GA20407@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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-Mar-18, Jeff Davis wrote: > Disk-based Hash Aggregation. > > While performing hash aggregation, track memory usage when adding new > groups to a hash table. If the memory usage exceeds work_mem, enter > "spill mode". Kudos!! -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services