-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pg-dump-anon: use latest postgresql available #354526
Conversation
While reviewing NixOS#352966 I noticed that the pg_anonymizer test fails for postgresql 17. The reason for that is that `pkgs.postgresql` is v16 and using its psql to connect against a v17 database doesn't work. I decided that we'll just use the latest available package in here. I don't want to introduce another attribute (`postgresql_latest`), if there are too many instances of that we're blocked on adding new postgresql majors directly to master again which is the current status quo. With the test rework in NixOS#352966 it's also way easier to catch this.
Hm, the "proper" fix would be to merge #345260, right? I'll add a note over there to turn this back to |
Sort of, yes. |
Yeah, I know, so agree on doing what is proposed here temporarily. I was just thinking about how to prevent this in the future.. but the only way to prevent a temporarily broken test in this case, is to make sure that Which is kind of an argument against the "let's split the init of new major and bump of |
Now that I'm thinking about it, the approach actually seems like a rather bad idea: you can deploy postgresql 17 instances on 24.11 now, but a lot of software will fail to talk to it (given that the So, first of all, I'd say that yes, we should couple adding new majors with making it the default attribute[1]. The question is now, what do we do with 24.11? [1] FTR and as discussed, this doesn't imply that this will be the default postgresql version installed by NixOS. |
Anyways, I think we agree that this change is valid on its own, so I'll go ahead and merge. |
I don't think everything will be broken. Most applications using libpq 16 will just keep working with a v17 server.
I don't think we need an eval warning, probably not even something in the release notes. Imho, we had the same situation with I expect very packages to break like pg-dump-anon here. |
Practical example: I just updated PostgREST's CI to test with v17 server as well, but still linking the app against v16. All works fine. |
Ah no, my mistake, the culprit wasn't the Apologies! But in that case, we can keep it that way and add new majors early (as we've done already). Sorry for the noise 🙈 |
While reviewing #352966 I noticed that the pg_anonymizer test fails for postgresql 17. The reason for that is that
pkgs.postgresql
is v16 and using its psql to connect against a v17 database doesn't work.I decided that we'll just use the latest available package in here. I don't want to introduce another attribute (
postgresql_latest
), if there are too many instances of that we're blocked on adding new postgresql majors directly to master again which is the current status quo. With the test rework in #352966 it's also way easier to catch this.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.