pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Vik Fearing <vik@postgresfriends.org>
Cc: Georgios Kokolatos <gkokolatos@protonmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Erik Rijkers <er@xs4all.nl>
Subject: Re: GROUP BY DISTINCT
Date: Thu, 18 Mar 2021 22:14:03 +0100
Message-ID: <aa87b9b9-6a14-a84a-574f-e3ad2ce2504c@enterprisedb.com> (raw )
In-Reply-To: <CA+hUKG+rJkXWjj_WFPE8cDp+9Av2T3bQfEfEBd=W+PdWVCk8mg@mail.gmail.com >
References: <bf3805a8-d7d1-ae61-fece-761b7ff41ecc@postgresfriends.org >
<c350ff6b-d70d-9952-be23-a18855b62589@postgresfriends.org >
<161469758801.29967.4455067072614569957.pgcf@coridan.postgresql.org >
<4294e82f-a134-5dbb-d9d6-03d72dce2e1e@postgresfriends.org >
<b95ee556-c527-04b8-6cae-f55950dde94b@enterprisedb.com >
<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 >
<CA+hUKG+rJkXWjj_WFPE8cDp+9Av2T3bQfEfEBd=W+PdWVCk8mg@mail.gmail.com >
On 3/18/21 10:02 PM, Thomas Munro wrote:
> On Fri, Mar 19, 2021 at 8:27 AM Tomas Vondra
> <tomas.vondra@enterprisedb.com> 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
view thread (20+ messages) latest in thread
Message-ID: <aa87b9b9-6a14-a84a-574f-e3ad2ce2504c@enterprisedb.com>
Permalink: ../aa87b9b9-6a14-a84a-574f-e3ad2ce2504c@enterprisedb.com/
Also on: postgresql.org/message-id/aa87b9b9-6a14-a84a-574f-e3ad2ce2504c@enterprisedb.com
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: tomas.vondra@enterprisedb.com, thomas.munro@gmail.com, vik@postgresfriends.org, gkokolatos@protonmail.com, pgsql-hackers@lists.postgresql.org, er@xs4all.nl
Subject: Re: GROUP BY DISTINCT
In-Reply-To: <aa87b9b9-6a14-a84a-574f-e3ad2ce2504c@enterprisedb.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox