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 1lMzy7-0003ka-0o for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Mar 2021 21:14:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lMzy5-0002Hp-RK for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Mar 2021 21:14:09 +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 1lMzy5-0002Hi-Kc for pgsql-hackers@lists.postgresql.org; Thu, 18 Mar 2021 21:14:09 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lMzy3-00030n-46 for pgsql-hackers@lists.postgresql.org; Thu, 18 Mar 2021 21:14:08 +0000 Received: by mail-ed1-x531.google.com with SMTP id h10so8378118edt.13 for ; Thu, 18 Mar 2021 14:14:06 -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=WiHwOhK0TwGCn0RLz5qa5TfFIC+gQjLRfCrvoRVeLuY=; b=1veVxIdgsCWHJl7X6OpQALZI1E5nFpADVcPFme9rWM6MAFtkOnT6gajkeHRnd3mVgM GJ0j7kRtVwAD79me5+qXpdMKjMi9IBEAyO6hscnkMwHSPIp52uzLyJhRSRetbn6ovWTv d1D/J6+YWwNEKlHTiGVow+vJ2v/6vyE/IBO2g4zE65KR6OKs+XJAcraRuStDp4mvubfX djU895DLni1I4aWTcddloqViB+4cyq8MTf0iBV6T7qlHHzenT8YpGbdZtOoS3PgudsgT TJui3Ywa+up1hXHNJ7LBsK1ZQFNJAeE2JRJ3+hQzt1IKGqoxEEfxwlPIAQHK/TXHPjOf 8jMg== 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=WiHwOhK0TwGCn0RLz5qa5TfFIC+gQjLRfCrvoRVeLuY=; b=ca4FlzBMoAm3NPHuQszD1YJk19TjEbeiTihKqYLcJf+UKyfXZxXGZ8/ElXgN4YmoTt kXiz3gUuUmmPsc3PRt1vzOjrBiBMRTjeqtCxEG0q1lTD7mfD3qaG0NcZJDbtAnByREUc 5MOgc0djr1UQMe2it39yYs4062jVma07vpMzRZLgNURDVr+ACBmsYKMWzh/zrDIhv32K 6cvy48QkTSzKRbGJfy4oFsPxaMuTnV4doRIKVaFGdB81Kt6XxjoUW/WNiHUsr5MxSuSL 02TGu6vK2L+9JF40+bNkFE/HXHGFU8VP5vaoSuFLw6tEF3HzIpbsaO8CQc9M6y7IlEtL vW2A== X-Gm-Message-State: AOAM533ab1HuT69xcR7nbb5iKtpERX2yxXsMBgaHOQMo2ikZTAakCq29 AIZxbMqG0U5+OU/TV2QxYDY27feb/eXsY0aCJdblZSYpeMXqgS+7pt5EHjE3wFaccD+Ye2TiBTE diaLVyKxoHFzBJM1IrR+8HYc2xwGpVTyoie+uBO2K/ZNN84cIHeMCI0IuISgN4Hue2HGPV5Z23j mTF9m/ElhtUef6Q3vli6BkdfH617bL6I5KSS7Skz1TJEykxak+/yWh X-Google-Smtp-Source: ABdhPJwvEj2BLQEBBAbXf4h+o2JHDmiYrqZbg6rzKW+J/Z7QSRu15wM63CGKDc/R9RMUwveayGgecg== X-Received: by 2002:a05:6402:1691:: with SMTP id a17mr6044846edv.336.1616102045310; Thu, 18 Mar 2021 14:14:05 -0700 (PDT) Received: from [10.137.0.20] (ip-86-49-253-127.net.upcbroadband.cz. [86.49.253.127]) by smtp.gmail.com with ESMTPSA id lm24sm2580227ejb.53.2021.03.18.14.14.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Mar 2021 14:14:04 -0700 (PDT) Subject: Re: GROUP BY DISTINCT To: Thomas Munro Cc: Vik Fearing , Georgios Kokolatos , PostgreSQL Hackers , Erik Rijkers References: <161469758801.29967.4455067072614569957.pgcf@coridan.postgresql.org> <4294e82f-a134-5dbb-d9d6-03d72dce2e1e@postgresfriends.org> <3817d5ec-f3e4-e4b9-d169-271ae5d3cbe4@postgresfriends.org> <8c44df08-bb64-3d78-da1a-d24b7c9db39d@enterprisedb.com> <7137947a-87be-d04a-bf91-f42e47520daa@enterprisedb.com> <35077b31-2d62-1e31-0e2e-ddb52d590b73@enterprisedb.com> From: Tomas Vondra Message-ID: Date: Thu, 18 Mar 2021 22:14:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 3/18/21 10:02 PM, Thomas Munro wrote: > On Fri, Mar 19, 2021 at 8:27 AM Tomas Vondra > wrote: >> Hmmm, this seems to fail on lapwing with this error: >> >> parse_agg.c: In function 'expand_grouping_sets': >> parse_agg.c:1851:23: error: value computed is not used >> [-Werror=unused-value] >> cc1: all warnings being treated as errors >> >> That line is this: >> >> foreach_delete_current(result, cell); >> >> and I don't see how any of the values close by could be unused ... >> >> The only possibility I can think of is some sort of issue in the old-ish >> gcc release (4.7.2). > > No sure what's going on there, but data points: I tried a 32 bit build > here (that's the other special thing about lapwing) and didn't see the > warning. GCC 10. Also curculio (gcc 4.2) and snapper (gcc 4.7) are > also showing this warning, but they don't have -Werror so they don't > fail. sidewinder (gcc 4.8) is not showing the warning. > Thanks for the info. So it's likely related to older gcc releases. The question is how to tweak the code to get rid of this ... regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company