Skip to content

Conversation

@samrose
Copy link
Collaborator

@samrose samrose commented Nov 17, 2025

Reduced the closure size (total dependency footprint) of the plv8 PostgreSQL extension by optimizing its runtime dependencies.

What was changed:

  1. nix/ext/plv8/default.nix - Replaced stdenv.cc.cc.lib with libcxx in all rpath settings
    - Added libcxx to the function inputs
    - Updated 4 locations where runtime library paths are set (both Darwin/macOS and Linux paths)
    - This reduces closure size because stdenv.cc.cc.lib pulls in the entire compiler toolchain, while libcxx only brings in the C++ standard library

@samrose samrose requested review from a team as code owners November 17, 2025 19:41
Copy link
Contributor

@jchancojr jchancojr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm ty so much

@hunleyd hunleyd added this pull request to the merge queue Nov 18, 2025
Merged via the queue into develop with commit 7c2878c Nov 18, 2025
28 checks passed
@hunleyd hunleyd deleted the pg-15-closure-plv8 branch November 18, 2025 15:43
hunleyd added a commit that referenced this pull request Nov 18, 2025
* 'develop' of github.com:supabase/postgres:
  feat: reduciton of closure size for plv8 (#1925)
hunleyd added a commit that referenced this pull request Nov 18, 2025
* 'develop' of github.com:supabase/postgres:
  feat: reduciton of closure size for plv8 (#1925)
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.

4 participants