Re: Problem linking with Release library

From: Igor Korot <ikorot01(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Problem linking with Release library
Date: 2026-05-13 02:52:13
Message-ID: CA+FnnTyRimKOOL46xm=r9YeLXR2FMFZ+z0=mGikMGuazP0AfNQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, David,

On Tue, May 12, 2026 at 6:04 PM David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)com> wrote:

> On Tuesday, May 12, 2026, Igor Korot <ikorot01(at)gmail(dot)com> wrote:
>
>>
>> So then I thought about creating MSVC project for building libpq as a
>> dependency. All I need is to produce a basic default build of both Debug
>> and Release builds of libpq only. No server and no ther software needed.
>> Prefer to build version 17.4.
>>
>
>
> https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=1301c80b2167feb658a738fa4ceb1c23d0991e23
>
> You seem to have put yourself into cutting edge PostgreSQL territory while
> remaining firmly old-school on the OS side of things…not usually a good
> place to find oneself.
>
> My LLM guided understanding is your likely 9.6 tool path was removed in
> favor of meson back in 2023. But meson itself is still working out the
> rough edges for stuff like a defined target for a libpq-only build and
> install.
>
> There is no guarantee or real attempt to keep modern supported versions
> running on software obsoleted before they even came into existence. You
> may or may not be able to finagle make/meson to do what you are attempting
> and the desire to help is limited. You may wish to consult an LLM of your
> choice for assistance. For something like this they can be very helpful
> with little downside.
>

What I don’t understand is:

1. There used to be a split builds - one package to build the server and
another to build the client (libpq). This is no longer the case.
PostgreSQL positions itself as client-server RDBMS, so why in order to
build the client I need the full blown server to download?

2. Any reason I need to install additional software for building (or
configuring the build)? You used to provide the Makefile for MSVC build.
What happened to it?

But to the point -

I’m not running Postgres server. It is running on the different machines.
All I need is to build the client library. Why can’t I? Why it should
matter what software (OS/compiler) I’m using? As long as I can successfully
build my software and test it it should be fine.

Thank you.

> David J.
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2026-05-13 03:09:51 Re: Problem linking with Release library
Previous Message David G. Johnston 2026-05-13 01:04:12 Re: Problem linking with Release library