Re: UniqueKey v2

From: zhihuifan1213(at)163(dot)com
To: jian he <jian(dot)universality(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: UniqueKey v2
Date: 2023-10-17 03:17:13
Message-ID: 7mla7cnmue6q.fsf@e18c07352.et15sqa
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


jian he <jian(dot)universality(at)gmail(dot)com> writes:

Hi jian,

> hi.
> After `git am`, I still cannot build.
>
> ../../Desktop/pg_sources/main/postgres/src/backend/optimizer/path/uniquekey.c:125:45:
> error: variable ‘var’ set but not used
> [-Werror=unused-but-set-variable]
> 125 | Var *var;
> | ^~~

Thanks for this report, looks clang 11 can't capture this error. I have
switched to clang 17 which would report this issue at the first place.

>
> You also need to change src/backend/optimizer/path/meson.build.

Great thanks.

>
> git apply failed.
>
> git am warning:
> Applying: uniquekey on base relation and used it for mark-distinct-as-op.
> .git/rebase-apply/patch:876: new blank line at EOF.
> +
> warning: 1 line adds whitespace errors.
>
> I think you can use `git diff --check`
> (https://git-scm.com/docs/git-diff) to check for whitespace related
> errors.

thanks for the really good suggestion. Here is the newer version:

Attachment Content-Type Size
v2-0001-uniquekey-on-base-relation-and-used-it-for-mark-d.patch text/x-patch 25.3 KB
unknown_filename text/plain 28 bytes

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2023-10-17 03:32:19 Re: Pre-proposal: unicode normalized text
Previous Message Jeff Davis 2023-10-17 03:10:05 Re: broken master regress tests