Commit Graph

2840 Commits

Author SHA1 Message Date
Gregor Giesen
60533972ec
pg-semver: init at 0.40.0
release notes: https://github.com/theory/pg-semver/blob/main/Changes
2024-11-17 19:25:50 +01:00
Maximilian Bosch
a0a51776ed
Merge: postgresqlPackages.sqlite_fdw: init at 2.4.0 (#350353) 2024-11-17 14:52:22 +01:00
Maximilian Bosch
f370530f87
Merge: postgresql.pkgs.pg_embedding: remove (#356526) 2024-11-17 13:40:26 +01:00
Maximilian Bosch
97a911e8fb
Merge: nixos/postgresql: extension based hardening relaxation (#355010) 2024-11-16 22:29:36 +01:00
Maximilian Bosch
7239af0a72
postgresql.pkgs.pg_embedding: remove
As discussed in #351306, this is scheduled for removal after 24.11
branchoff.
2024-11-16 21:20:25 +01:00
Martin Weinelt
d370af0785
nixos/postgresql: create infrastructure for relaxing systemd hardening
By matching on the package names of the plugins passed into the package
we can relax the systemd unit hardening as needed.
2024-11-16 17:29:34 +01:00
Maximilian Bosch
0b3eef7441
postgresql_12: remove
This will be EOL at the end of November, so there's little reason to
keep it in 24.11[1]. As discussed, we'd like to keep it for as long as
possible to make sure there's a state in nixpkgs that has the latest
minor of postgresql_12 available with the most recent CVEs fixed for
people who cannot upgrade[2].

This aspect has been made explicit in the manual now for the next .11
release.

During the discussions it has been brought up that if people just do
`services.postgresql.enable = true;` and let the code decide the
postgresql version based on `system.stateVersion`, there's a chance that
such EOL dates will be missed. To make this harder, a warning will now
be raised when using the stateVersion-condition and the oldest still
available major is selected.

Additionally regrouped the postgresql things in the release notes to
make sure these are all shown consecutively. Otherwise it's a little
hard to keep track of all the changes made to postgresql in 24.11.

[1] https://endoflife.date/postgresql
[2] https://github.com/NixOS/nixpkgs/pull/353158#issuecomment-2453056692
2024-11-15 09:17:06 +01:00
apfelkuchen06
0d9b64a98c postgresqlPackages.sqlite_fdw: init at 2.4.0 2024-11-14 21:02:42 +01:00
Wolfgang Walther
8e48064d55
postgresql_17: 17.0 -> 17.1
Release Notes:
https://www.postgresql.org/about/news/postgresql-171-165-159-1414-1317-and-1221-released-2955/
2024-11-14 20:04:11 +01:00
Wolfgang Walther
9dc6733018
postgresql_15: 15.8 -> 15.9
Release Notes:
https://www.postgresql.org/about/news/postgresql-171-165-159-1414-1317-and-1221-released-2955/
2024-11-14 19:26:41 +01:00
Wolfgang Walther
cf1f7e7201
postgresql_14: 14.13 -> 14.14
Release Notes:
https://www.postgresql.org/about/news/postgresql-171-165-159-1414-1317-and-1221-released-2955/
2024-11-14 19:23:47 +01:00
Wolfgang Walther
b1a05d9399
postgresql_13: 13.16 -> 13.17
Release Notes:
https://www.postgresql.org/about/news/postgresql-171-165-159-1414-1317-and-1221-released-2955/
2024-11-14 19:20:16 +01:00
Wolfgang Walther
fbae27508f
postgresql_12: 12.20 -> 12.21
Release Notes:
https://www.postgresql.org/about/news/postgresql-171-165-159-1414-1317-and-1221-released-2955/
2024-11-14 19:10:04 +01:00
Nick Cao
57ffa0833c
postgresqlPackages.lantern: update license (#355841) 2024-11-14 08:44:04 -05:00
zowoq
dfedbb6088 postgresqlPackages.lantern: update license
license was changed to agpl3 in the 0.4.0 release

7ed99eb2b8
2024-11-14 17:29:45 +10:00
Maximilian Bosch
0644d3be87
Merge branch 'master' into staging-next 2024-11-10 18:34:57 +01:00
K900
7ebe9739ff Merge remote-tracking branch 'origin/master' into staging-next 2024-11-09 23:12:56 +03:00
Wolfgang Walther
9035573855
nixosTests.postgresql: move all postgresql related nixosTests into one folder
This makes it possible to run all those tests at once by building
nixosTests.postgresql and allow a simple entry to ci/OWNERS for all
tests.
2024-11-09 18:24:52 +01:00
Wolfgang Walther
db2d6a00ab
postgresqlPackages.anonymizer: make passthru.tests work with correct package
Same reasoning as commit before.
2024-11-09 18:24:52 +01:00
Wolfgang Walther
23c19a255f
postgresqlPackages.timescaledb: make passthru.tests work with correct package
Same reasoning as commit before.
2024-11-09 18:24:52 +01:00
Wolfgang Walther
6d7da20a90
postgresqlPackages.tsja: make passthru.tests work with correct package
Same reasoning as commit before.
2024-11-09 18:24:52 +01:00
Wolfgang Walther
a5c41ae80a
postgresqlPackages.pgvecto-rs: make passthru.tests work with correct package
Same reasoning as commit before.
2024-11-09 18:24:51 +01:00
Wolfgang Walther
0af934adf7
postgresqlPackages.pgjwt: make passthru.tests work with correct package
Same reasoning as commit before.
2024-11-09 18:24:51 +01:00
Wolfgang Walther
ecffab1fda
postgresqlPackages.postgis: move nixosTests.postgis into package
Same reasoning as commit before.
2024-11-09 18:24:51 +01:00
Wolfgang Walther
aded718a98
postgresqlPackages.apache_datasketches: move nixosTests.apache_datasketches into package
There is no need to fire up a whole VM just to run a two line test of
creating the extension. We can use postgresqlTestExtension for that.
This has the advantage that it runs with postgresqlTestHook, so without
a VM, making it more portable.
2024-11-09 18:24:51 +01:00
Wolfgang Walther
139c546676
postgresql: add passthru.tests.postgresql-tls-client-cert
Same reasoning as commit before.
2024-11-09 18:24:51 +01:00
Wolfgang Walther
f6c2de9262
postgresql: add passthru.tests.postgresql
Restructuring the nixosTests.postgresql test a little bit to allow
calling it with the specific versioned package from generic.nix.
2024-11-09 18:24:51 +01:00
Wolfgang Walther
319d82d5c2
nixosTests.postgresql-wal2json: avoid manual imports
Same reasoning as commit before.
2024-11-09 18:24:51 +01:00
Wolfgang Walther
65ef7381c8
nixosTests.postgresql-jit: avoid manual imports
Same reasoning as commit before.
2024-11-09 18:24:50 +01:00
Wolfgang Walther
a1ae4377e0
nixosTests.postgresql-wal-receiver: avoid manual imports
Manually importing postgresql packages from the /pkgs/ folder or
manually importing the test from /nixos/tests/ in generic.nix is not
only ugly, but also forbidden should we ever move to pkgs/by-name.

We can achieve almost the same with a slightly different setup. We allow
overriding the postgresql package for the test via passthru.override, to
make sure that each postgresql_xx.tests.postgresql-wal-receiver is
properly teted with the right version.
2024-11-09 18:24:50 +01:00
Maximilian Bosch
3bf6a063b3
Merge: postgresqlPackages: fix some builds on darwin (#354748) 2024-11-09 18:21:30 +01:00
github-actions[bot]
a90280100f
Merge master into staging-next 2024-11-09 15:14:08 +00:00
Theodore Ni
bc5b75eb11
mysql80: 8.0.39 -> 8.0.40 (#350248) 2024-11-09 05:42:24 -08:00
Maximilian Bosch
8091ea3f24
Merge: postgresql_17: fix build (#354571) 2024-11-09 14:09:03 +01:00
Emily
ce788776a5 Merge master into staging-next 2024-11-09 12:51:01 +00:00
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00
Wolfgang Walther
4801d0c2a3
postgresql17Packages.{pg_cron,pg_hll}: fix build on x86_64-darwin
This fixes the following error:

error: comparison of integers of different signs: 'ssize_t' (aka 'long')
and 'const size_t' (aka 'const unsigned long') [-Werror,-Wsign-compare]
                if (part < iov[i].iov_len)
                    ~~~~ ^ ~~~~~~~~~~~~~~
2024-11-09 12:16:58 +01:00
Maximilian Bosch
676db52174
postgresql_17: fix build
Closes #354497

See https://www.postgresql.org/message-id/ba8e1bc0-8a99-45b7-8397-3f2e94415e03%40suse.de for context.
2024-11-08 20:36:48 +01:00
Wolfgang Walther
d1478e78c0
postgresqlPackages.system_stats: fix build on darwin
The build was failing with:

darwin/io_analysis.c:71:21: error: variable length array used
[-Werror,-Wvla]
                        char device_name[kMaxDiskNameSize];
                                         ^~~~~~~~~~~~~~~~
2024-11-08 19:48:39 +01:00
github-actions[bot]
f899bb5680
Merge staging-next into staging 2024-11-05 18:05:09 +00:00
0x4A6F
9d03557aae
mariadb: 10.5.27, 10.6.20, 10.11.10, 11.4.4 (#353661) 2024-11-05 16:46:18 +01:00
github-actions[bot]
e953c01873
Merge staging-next into staging 2024-11-05 00:14:28 +00:00
Simon Hauser
b0519b4318
mariadb: 10.5.27, 10.6.20, 10.11.10, 11.4.4
Changelog:
- https://mariadb.com/kb/en/mariadb-10-5-27-changelog/
- https://mariadb.com/kb/en/mariadb-10-6-20-changelog/
- https://mariadb.com/kb/en/mariadb-10-11-10-changelog/
- https://mariadb.com/kb/en/mariadb-11-4-4-changelog/
2024-11-04 16:34:26 +01:00
Maximilian Bosch
184cda2b94
postgresql: remove danbst from maintainer list
Thanks a lot for all your work! If you ever come back to nixpkgs, feel
free to revert the commit, your return would be welcomed!
2024-11-02 15:47:50 +01:00
Maximilian Bosch
c65705940a
postgresql: use team
Main motivation for this is that I'd like to get a feature-freeze ping:
we have old stuff to remove and quite a bit of things ongoing here, so
explicitly being part of the check-up process seems like a good thing.

Also added myself and wolfgangwalther to it.
2024-11-02 15:47:32 +01:00
github-actions[bot]
6d99484921
Merge staging-next into staging 2024-10-31 12:05:55 +00:00
Maximilian Bosch
976f14bc27
Merge: postgresql: plugin pg_embedding is no longer maintained (#351306) 2024-10-31 12:13:03 +01:00
Maximilian Bosch
a34f8f6c4b
Merge: postgresql.withPackages: support withJIT and withoutJIT (#352158) 2024-10-31 10:35:07 +01:00
Wolfgang Walther
6cc9178c31
postgresql.withPackages: support withJIT and withoutJIT
This allows using postgresql.withPackages in the nixos module, which
calls withJIT and without JIT.

Supersedes #351968
2024-10-29 19:38:44 +01:00
Wolfgang Walther
e24121ec20
postgresqlPackages: replace custom installPhase with buildPostgresqlExtension helper 2024-10-29 09:55:20 +01:00