Skip to content

fix: keep the plain xpg name for multi-version builds - #18

Merged
steve-chavez merged 1 commit into
supabase:masterfrom
utkarash2991:xpg-name-for-multi-version
Nov 2, 2026
Merged

steve-chavez merged 1 commit into
supabase:masterfrom
utkarash2991:xpg-name-for-multi-version

Conversation

@utkarash2991

Copy link
Copy Markdown
Contributor

After the binary split the all-versions build is named xpg17, so anything calling xpg from a withExtensions shell gets command not found. The README still shows xpg -h, so I assume the plain name was meant to stay for that build.

This names a build xpgNN only when it is pinned to a single version, as the forVersions packages are, and keeps xpg when the version is selected with -v. The default flake app now points at the all-versions build, since xpg17 has no bin/xpg. The tests job follows the rename.

Needed for supabase/supautils#260, which bumps xpg past the split.

The binary split named every build after its default version, so the
all-versions build became xpg17 and consumers calling xpg broke. Only a
build pinned to a single version takes the version suffix; a build that
selects the version with -v keeps the name xpg. The default flake app now
points at the all-versions build.
@AndrewJackson2020

AndrewJackson2020 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Agree this was a miss on my part. Looks good, just going to run locally and will approve after.

FWIW I think that I would like us to move away from packaging all postgres versions in a single binary altogether though. Ideally the xpg17 target should allow the use of withExtensions for example. That way there is a hard limit as to how many Postgres's get built at one time on your local machine. Right now for example im waiting for all 16 postgres builds before I can run your changes locally. I eventually want to get additional builds like thread sanitizer (especially before we talk about turning pg_net into a multithreaded application) in much case it would be 24 builds.

Also I do wonder if we should be using the minor version as well (xpg17.2 for example).

@AndrewJackson2020 AndrewJackson2020 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@utkarash2991

Copy link
Copy Markdown
Contributor Author

@steve-chavez I dont have merge rights on this repo. Can you please help in merging this Pr please?

@AndrewJackson2020

Copy link
Copy Markdown
Contributor

@steve-chavez I dont have merge rights on this repo. Can you please help in merging this Pr please?

Also we probably want to cut a release after.

@steve-chavez
steve-chavez merged commit 22a1116 into supabase:master Nov 2, 2026
11 checks passed
@steve-chavez

Copy link
Copy Markdown
Member

@utkarash2991 Done, please mention it internally. Idk what's up with the permissions.

@utkarash2991
utkarash2991 deleted the xpg-name-for-multi-version branch November 4, 2026 15:43
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