| From: | Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> |
|---|---|
| To: | John Naylor <johncnaylorls(at)gmail(dot)com> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Improving and extending int128.h to more of numeric.c |
| Date: | 2025-07-09 09:38:31 |
| Message-ID: | CAEZATCWHWxruvSm+xw-6ULJpqzYpbrPPxTMa1LreYs7Mut9Fxw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, 9 Jul 2025 at 07:41, John Naylor <johncnaylorls(at)gmail(dot)com> wrote:
>
> Hi Dean, I went to take a look at this and got stuck at building the
> test file. The usual pointing gcc to the src and build include
> directories didn't cut it. How did you get it to work?
>
Yes, it wasn't immediately obvious how to do it. I first built
postgres as normal, including the pg_config tool, and then used that
to compile the test as follows:
gcc -O3 -g \
src/tools/testint128.c \
-I$(pg_config --includedir-server) \
-o src/tools/testint128 \
$(pg_config --libs)
It actually only needs -lpgcommon -lpgport -lm, but it seemed easier
just to include all of the pg_config --libs.
Regards,
Dean
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mircea Cadariu | 2025-07-09 09:51:16 | Re: Add os_page_num to pg_buffercache |
| Previous Message | shveta malik | 2025-07-09 08:42:35 | Re: Logical Replication of sequences |