Skip to content

Conversation

@hlinnaka
Copy link
Contributor

This is a backport of PostgreSQL commit c0a1d76 to REL_14_STABLE. Our top-level Makefile in the neon repository depends on "make install" not modifying the mtimes on the headers, if there have been no changes to them. Otherwise, the postgres_ffi rust crate and all the other components that depends on it get rebuilt every time you run make.

This is a backport of PostgreSQL commit c0a1d76 to REL_14_STABLE.
Our top-level Makefile in the neon repository depends on "make
install" not modifying the mtimes on the headers, if there have been
no changes to them. Otherwise, the `postgres_ffi` rust crate and all
the other components that depends on it get rebuilt every time you run
`make`.
@hlinnaka hlinnaka merged commit 9085654 into REL_14_STABLE_neon Jun 21, 2025
1 check passed
@hlinnaka hlinnaka deleted the heikki/avoid-postgres_ffi-recompilations branch June 21, 2025 21:07
github-merge-queue bot pushed a commit to neondatabase/neon that referenced this pull request Jun 21, 2025
Every time you run `make`, it runs `make install` on all the PostgreSQL
sources, which copies the header files. That in turn triggers a rebuild
of the `postgres_ffi` crate, and everything that depends on it. We had
worked around this earlier (see #2458), by passing a custom INSTALL
script to the Postgres makefiles, which refrains from updating the
modification timestamp on headers when they have not been changed, but
the v14 makefile didn't obey INSTALL for the header files. Backporting
c0a1d76 to v14 fixes that.

This backports upstream PostgreSQL commit c0a1d76 to v14.

Corresponding PR in the 'postgres' repo:
neondatabase/postgres#660
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants