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.89) (envelope-from ) id 1j484E-0005a4-7f for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Feb 2020 18:57:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j484C-0004xZ-R4 for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Feb 2020 18:57:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j484C-0004wx-Ab for pgsql-hackers@lists.postgresql.org; Tue, 18 Feb 2020 18:57:56 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j484A-00036F-0O for pgsql-hackers@postgresql.org; Tue, 18 Feb 2020 18:57:55 +0000 Received: by mail-wm1-x343.google.com with SMTP id c84so4099656wme.4 for ; Tue, 18 Feb 2020 10:57:53 -0800 (PST) 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:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=6WjNiVIaCzIkRO9xo4D3a8xvlslGN9g8RqAEUxOdciI=; b=uZmiCH9EyqaGAKic0J/inq/PMssM+UwX4sb5cymt/S1BVV9loL+JuTnoYrONo7+C7m MQ8sZg+KmssTORMR8kL/Ee57CdPgAwn5Ytg7/u+MGlO6z71C8yoEajjh5UbmLlAMNFL3 Rea7Kx4av1EWQCxyPSlSkNV1ecIK7JWn48zfgDoIX6RHR8/ccPjXmi1MWTG01Fre8PE1 FqLkS59L9C+nUWPATma1+aGZ0TamsDRdvN7ije6w3BR9Nif1xdgGCLrFWxtjVy6bXSU5 x4fjPjd8w8+g6qvQQw/lSBDDlVvKOV/DxE5MxWxZFayyFnfdJM9OcCW0c9NkhjJ3qvL7 Epww== 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:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=6WjNiVIaCzIkRO9xo4D3a8xvlslGN9g8RqAEUxOdciI=; b=P5aCqo1C8A2col4sHB+0BY3edy5xH3pVWvitcu/EynS3BsYDplCncwzq0WwclxaxRs /87Nu9nsc3ZcO4e2Byy0ogxpSetm0fzv767bnH1VJtJmEW1U/53d8W3L+vx1G5wUu5zv bz7qGYDkbbt3kYjuUHrJ4CFOGQ0sqyfJHwBQDrQdJyUHEkqbsRhJMqNWuCwJYKMLQhd+ rcQEKKWJwvwcvt/ouLSZc2/QqT8F4JIIeni2wBn1b9A4QpN4oixtByNJbA5yVyJWcvMa hU+z2H3XdcD/G2ulbCpeEpoRA1iZJdiGtxkJO9wQjE9E2unjurmmJobwqDUOLSDFOWOj w/Sw== X-Gm-Message-State: APjAAAWV8vMJEHKJR/MS5LO0W6KP6nvL3CYEkOftSJyYsFpsr+15SSng Os9UN8bD3R/706uTzfrmCBrgug== X-Google-Smtp-Source: APXvYqyjUWxBv5Fqc69Ek7W/lhtNaFhlUFEkSq9tSQVWNTdjsgbhkdX49NJD6Ul1o9vHRtHADxh+Mw== X-Received: by 2002:a7b:cc6a:: with SMTP id n10mr4582834wmj.170.1582052272427; Tue, 18 Feb 2020 10:57:52 -0800 (PST) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id h205sm4716002wmf.25.2020.02.18.10.57.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Feb 2020 10:57:51 -0800 (PST) Date: Tue, 18 Feb 2020 19:57:49 +0100 From: Tomas Vondra To: Melanie Plageman Cc: Heikki Linnakangas , Jeff Davis , Taylor Vesely , Adam Lee , Melanie Plageman , Pg Hackers Subject: Re: Memory-Bounded Hash Aggregation Message-ID: <20200218185749.srk733n4z57lzxf2@development> References: <9be86fc1adc315f69b8af4b379087ab451008d8a.camel@j-davis.com> <20190802064405.GA94036@mars.local> <617fea8258ba3df7bc8b21cd7f3afc219f2383d9.camel@j-davis.com> <20190802152123.ichmacgx3y3x7dc3@development> <20191214173225.3kzsbncr6brpxdll@development> <775d754c-9a61-5363-6998-f87d15f1b592@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, I wanted to take a look at this thread and do a review, but it's not very clear to me if the recent patches posted here are independent or how exactly they fit together. I see 1) hashagg-20200212-1.patch (2020/02/13 by Jeff) 2) refactor.patch (2020/02/13 by Jeff) 3) v1-0001-aggregated-unaggregated-cols-together.patch (2020/02/14 by Melanie) I suppose this also confuses the cfbot - it's probably only testing (3) as it's the last thing posted here, at least I think that's the case. And it fails: nodeAgg.c: In function ‘find_aggregated_cols_walker’: nodeAgg.c:1208:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] FindColsContext *find_cols_context = (FindColsContext *) context; ^ nodeAgg.c: In function ‘find_unaggregated_cols_walker’: nodeAgg.c:1225:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] FindColsContext *find_cols_context = (FindColsContext *) context; ^ cc1: all warnings being treated as errors : recipe for target 'nodeAgg.o' failed make[3]: *** [nodeAgg.o] Error 1 make[3]: *** Waiting for unfinished jobs.... It's probably a good idea to either start a separate thread for patches that are only loosely related to the main topic, or always post the whole patch series. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services