Patch to add dependency between client executes and static libraries

Started by 高增琦almost 9 years ago2 messageshackers
Beta feature

Hackorum builds and tests every patch posted to the lists, not only commitfest submissions. This is Hackorum's own CI rather than the PostgreSQL project's, and it is still under testing - please report anything that looks wrong.

won't retrysuccessCI history

You can run a PostgreSQL built from this patch straight from Docker, with no checkout and no build:

docker run --rm -p 5432:5432 ghcr.io/hackorum-dev/postgres-patch:t37749
psql -h localhost -U postgres

Built from patchset v1 (message #1), July 27, 2026 at 09:49 PM.

Every patchset is also pushed to a branch of our PostgreSQL fork, so you can check out the same tree CI built. Without a PostgreSQL checkout:

git clone --branch t37749_1 https://github.com/hackorum-dev/postgres.git

In a checkout you already have, add the fork once:

git remote add hackorum https://github.com/hackorum-dev/postgres.git

then, for this patchset and every later one:

git fetch hackorum t37749_1 && git checkout t37749_1

Patchset v1 (message #1) is on t37749_1

Jump to latest
#1高增琦
pgf00a@gmail.com

Hi, all

The attached patch trying to add dependency between client executes
and static libraries.

As described in message:
/messages/by-id/CAFmBtr1GDF+Cpw+7SZF8jWGeazOd==ivRAg3rWhLaRXYCv83Vg@mail.gmail.com

I add a STLIBS variable in Makefiles as normal prerequisite.
Then, for example, if you update something in psqlscan.l, then make will
rebuild psql automatically.

Since I don't know if the la
​c​
k of dependency is problem or not,
this patch maybe useless.

Thanks,

--
GaoZengqi
pgf00a@gmail.com
zengqigao@gmail.com

Attachments:

t37749_1
0001-add-dependency-between-client-executes-and-static-li.patchapplication/octet-stream; name=0001-add-dependency-between-client-executes-and-static-li.patchDownload+82-37
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: 高增琦 (#1)
Re: Patch to add dependency between client executes and static libraries

=?UTF-8?B?6auY5aKe55Cm?= <pgf00a@gmail.com> writes:

The attached patch trying to add dependency between client executes
and static libraries.

If this is intended to solve the problem described in
<CAFmBtr1GDF%2BCpw%2B7SZF8jWGeazOd%3D%3DivRAg3rWhLaRXYCv83Vg%40mail.gmail.com>
then it should be added to that thread rather than starting a new one.

But please see the comment I just posted in that thread --- I don't
think we want to continue using order-only dependencies for these
libraries.

regards, tom lane