Re: pgsql: Refactor to add pg_strcoll(), pg_strxfrm(), and variants.

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: Jeff Davis <jdavis(at)postgresql(dot)org>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Refactor to add pg_strcoll(), pg_strxfrm(), and variants.
Date: 2023-02-24 01:07:16
Message-ID: 20230224010715.GR1653@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Fri, Feb 24, 2023 at 01:56:05PM +1300, Thomas Munro wrote:
> On Fri, Feb 24, 2023 at 1:20 PM Justin Pryzby <pryzby(at)telsasoft(dot)com> wrote:
> > These patches cause warnings under MSVC.
> >
> > Of course my patch to improve CI by warning about compiler warnings is
> > the only one to notice.
> >
> > https://cirrus-ci.com/task/6199582053367808
>
> It's a shame that it fails the whole Windows task, whereas for the
> Unixen we don't do -Werror so you can still see if everything else is
> OK, but then we check for errors in a separate task. I don't have any
> ideas on how to achieve that, though.

My patch isn't very pretty, but you can see that runs all the tests
before grepping for warnings, rather than failing during compilation as
you said.

IMO the compiler warnings task is separate not only "to avoid failing
the whole task during compilation", but because it's compiled with
optimization. Which is 1) needed to allow some warnings to be warned
about; and, 2) harmful to enable during the "check-world" tests, since
it makes backtraces less accurate.

--
Justin

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2023-02-24 03:53:02 pgsql: meson: windows: Fix tmp_install + prefix computation with meson
Previous Message Thomas Munro 2023-02-24 00:56:05 Re: pgsql: Refactor to add pg_strcoll(), pg_strxfrm(), and variants.

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2023-02-24 01:15:36 Re: stopgap fix for signal handling during restore_command
Previous Message Thomas Munro 2023-02-24 00:56:05 Re: pgsql: Refactor to add pg_strcoll(), pg_strxfrm(), and variants.