Re: Slim down integer formatting

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Greg Nancarrow <gregn4422(at)gmail(dot)com>, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, David Fetter <david(at)fetter(dot)org>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Slim down integer formatting
Date: 2021-07-27 04:30:25
Message-ID: CAApHDvrP_zBJyJt8O3=QoQW5ud8QV5EbFzqXxhhae0nFmNZ6KA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 27 Jul 2021 at 15:08, Greg Nancarrow <gregn4422(at)gmail(dot)com> wrote:
>
> On Tue, Jul 27, 2021 at 12:42 PM Michael Paquier <michael(at)paquier(dot)xyz> wrote:
> >
> > #include "common/int.h"
> > +#include "d2s_intrinsics.h"
> > Er, are you sure about this part? The first version of the patch did
> > that in a different, also incorrect, way.
>
> Er, I was just trying to help out, so at least the patch could be
> applied (whether the patch has merit is a different story).
> Are you saying that it's incorrect to include that header file in this
> source, or that's the wrong way to do it? (i.e. it's wrong to adjust
> the makefile include path to pickup the location where that header is
> located and use #include "<header>"? That header is in src/common,
> which is not on the default include path).
> The method I used certainly works, but you have objections?
> Can you clarify what you say is incorrect?

I think the mistake is that the header file is not in
src/include/common. For some reason, it's ended up with all the .c
files in src/common.

I imagine Andrew did this because he didn't ever expect anything else
to have a use for these. He indicates that in [1].

Maybe Andrew can confirm?

[1] https://www.postgresql.org/message-id/87mup9192t.fsf%40news-spur.riddles.org.uk

David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2021-07-27 04:36:15 Re: Some code cleanup for pgbench and pg_verifybackup
Previous Message Dilip Kumar 2021-07-27 04:26:33 Re: row filtering for logical replication