postgresql_beta: init at version 16beta3 #249030
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary: For integration and testing purposes, especially for downstream consumers (Flakes, etc) that rely on testing against various PostgreSQL versions, it's useful to have a beta version around. An example of this is PostgREST, which has several people using Nix in order to test the server against different versions. Testing against beta versions is currently awkward because there's no way to get them besides patching and forking Nixpkgs.
There's a related problem here, which is that the APIs needed to create your own postgresql package, with all extensions, are not exposed. That might be worth doing later on; but for now, it's easy to just track beta versions and nip the issue in the bud from there.
The intent is that this
beta
package follows the same basic rules as the Linux prerelease "beta" packages; that is:postgresql_beta
always tracks a beta, even if the corresponding release is out.postgresql_beta
is updated on a provisional basis i.e. it won't necessarily get prompt updates or security updates like the other expressions.Many thanks to Laurence Isla, who initially made this change as part of an effort to integrate PostgREST against PostgreSQL 16 Beta 2.
See also: PostgREST/postgrest#2865
Description of changes
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)