Skip to content

Conversation

@samrose
Copy link
Collaborator

@samrose samrose commented Jan 26, 2026

  1. latestOnly Parameter Support (d20cab0)
  • Added a latestOnly parameter that flows through makeOurPostgresPkgs → makePostgresBin → makePostgres
  • When latestOnly=true, only the latest version of each extension is built (instead of all historical versions)
  • Creates new psql_17_slim package using this parameter
  1. Extension Updates (db96c62)
  • Updated ~28 extension files in nix/ext/ to support the latestOnly parameter
  • Notable: wrappers alone has 13 versions → 1 when slim, saving significant space
  1. Supporting Files
  • Added nix/packages/image-size-analyzer.nix - tool to analyze image sizes
  • Added docs/plans/2026-01-21-psql-slim-latest-only.md - implementation plan
  • Added nix/docs/image-size-analyzer-usage.md - usage documentation
  • Updated Dockerfiles (Dockerfile-15, Dockerfile-17, Dockerfile-orioledb-17)
  • Various ansible config cleanups and renames

Expected Impact

  • Estimated size reduction: ~1GB+ (~40-60% smaller images)
  • Primary savings from multi-version extensions like wrappers (13→1 versions) + alpine vs ubuntu base image

Add latestOnly parameter that flows through makeOurPostgresPkgs,
makePostgresBin, and makePostgres functions. When true, this parameter
will enable building only the latest version of each extension.

Also adds psql_17_slim package that uses latestOnly=true.

feat(ext): add latestOnly support to pgvector

feat(ext): add latestOnly support to wrappers

Add latestOnly parameter to wrappers extension that:
- Filters versionsToUse when latestOnly=true to build only latest version
- Skips migration SQL file generation when latestOnly=true
- Skips previously packaged version symlinks when latestOnly=true
- Updates library count verification for slim builds (expects 2 files)
- Updates passthru metadata with versionsBuilt and latestOnly flag

This is part of the psql_17_slim implementation to reduce image size.

feat(ext): add latestOnly support to pg_graphql

feat(ext): add latestOnly support to pg_net
@coderabbitai
Copy link

coderabbitai bot commented Jan 26, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

2 participants