Commit Graph

1452 Commits

Author SHA1 Message Date
github-actions[bot]
5942e21e4e
Merge master into staging-next 2024-10-04 12:05:36 +00:00
Augustin Trancart
3d19c66a1f postgresqlPackages.postgis: 3.4.3 -> 3.5.0 2024-10-03 18:01:30 +02:00
github-actions[bot]
c101f2dc94
Merge staging-next into staging 2024-09-27 18:04:55 +00:00
github-actions[bot]
911b856128
Merge master into staging-next 2024-09-27 18:04:26 +00:00
Sandro
512f8ce65e
postgresql15Packages.wal2json: 2.5 -> 2.6 (#315097) 2024-09-27 14:53:34 +02:00
Wolfgang Walther
6178e9bd3c
postgresql: remove deprecated enableSystemd override
This was deprecated in e6bfabf366, where
we agreed on removing this after one release in [1].

Time has come!

[1]: https://github.com/NixOS/nixpkgs/pull/292993#discussion_r1518883146
2024-09-26 19:08:55 +02:00
Wolfgang Walther
a7fdf2256a
postgresql: simplify systemdSupport default value
systemd is not available on static platforms, so the isStatic check is
redundant.
2024-09-26 19:08:54 +02:00
Wolfgang Walther
de4ad2a6ac
postgresql: use newer libuuid instead of ossp-uuid
Since PostgreSQL 9.4 it's possible to build with different uuid
libraries. Eversince, the postgres docs [1] have this to say:

  [..] the OSSP UUID library [..] is not well maintained, and is
  becoming increasingly difficult to port to newer platforms. [..]
  On Linux, OS X, and some other platforms, suitable functions are
  provided in the libuuid library, which originally came from the
  e2fsprogs project (though on modern Linux it is considered part of
  util-linux-ng).

Using e2fs for Darwin was introduced 9 years ago in #8574, which library
to use for Linux was never considered again. Thus, start building with
newer libs now.

As a side effect, we require one less patch if we decide to build with
meson later.

[1]: https://www.postgresql.org/docs/current/uuid-ossp.html
2024-09-26 19:08:54 +02:00
Wolfgang Walther
149aa98ce4
postgresql: run full test-suite during checkPhase
doCheck was enabled in #61395 which does not mention an explicit decision
for "check" instead of "check-world". The latter runs more tests, for example
for contrib modules etc. - but results in higher build times..

Running "nix-build -A postgresql":
- with doCheck = false: 46s
- with checkTarget = "check": 60s
- with checkTarget = "check-world": 75s
2024-09-26 09:40:04 +02:00
Wolfgang Walther
fad9dabf9f
pkgsMusl.postgresql: disable "locale -a" properly
/bin/locale doesn't exist on musl and was already effectively disabled
in #228349. However this still leaves the following warning for initdb:

  performing post-bootstrap initialization ... sh: locale: not found

By applying the alpine patch to disable locale -a entirely, this warning
will disappear. This will also make one more regression test pass when
testing "check-world" instead of "check", only.
2024-09-26 09:40:04 +02:00
github-actions[bot]
3b110ff21b
Merge staging-next into staging 2024-09-26 00:14:18 +00:00
K900
a9128ce2f2 Merge remote-tracking branch 'origin/master' into staging-next 2024-09-25 21:07:19 +03:00
Maximilian Bosch
fc16319c06
Merge: postgresqlPackages: refactor extension checks with helper (#343486) 2024-09-25 19:06:11 +02:00
Franz Pletz
f6e93ec992
postgresqlPackages: some cleanup (#343309) 2024-09-25 17:29:40 +02:00
Artturin
f0e657f3b1 Merge branch 'master' into staging-next 2024-09-25 06:05:01 +03:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
github-actions[bot]
6ef8ec38ed
Merge staging-next into staging 2024-09-24 12:05:42 +00:00
github-actions[bot]
bcd5388d39
Merge master into staging-next 2024-09-24 12:05:12 +00:00
Yt
2232cae406
postgresqlPackages.pgvecto-rs: 0.2.1 -> 0.3.0 (#321617) 2024-09-24 05:56:28 -04:00
Euan Kemp
4450044b7b postgresql15Packages.wal2json: 2.5 -> 2.6 2024-09-24 10:32:36 +09:00
Wolfgang Walther
fa8a147338
postgresqlPackages: remove unused derivation arguments
Those had been replaced by the following a while ago:

  buildInputs = postgresql.buildInputs
2024-09-23 20:05:37 +02:00
Wolfgang Walther
f27f203f5a
postgresqlPackages: use makeFlags USE_PGXS=1 consistently 2024-09-23 20:05:36 +02:00
Wolfgang Walther
37ac1256c4
postgresqlPackages.pgjwt: add simple create extension check 2024-09-21 14:16:13 +02:00
Wolfgang Walther
2b9fa464cf
postgresqlPackages: refactor extension checks
The withPackages scope now provides a "postgresqlTestExtension" helper
which removes all the boilerplate for those kind of tests.

This was Mario Rodas' idea in #299756.
2024-09-21 14:16:12 +02:00
Wolfgang Walther
b6567e0a54
postgresqlPackages.lantern.tests.extension: fix test
The name of the access method was changed upstream a while ago.
2024-09-21 14:16:12 +02:00
github-actions[bot]
b84aacf2e6
Merge staging-next into staging 2024-09-21 12:05:41 +00:00
github-actions[bot]
d3ae261fc3
Merge master into staging-next 2024-09-21 12:05:16 +00:00
Maximilian Bosch
9163a9f3b8
Merge: postgresql: improve fake pg_config in default output (#341421) 2024-09-21 14:04:45 +02:00
Maximilian Bosch
789562caae
Merge: nixos/tests: add postgresql wal2json test (#315095) 2024-09-21 13:27:22 +02:00
Maximilian Bosch
2795949808
Merge: postgresql_jit.pkgs.postgis: fix build on darwin (#342369) 2024-09-21 11:53:12 +02:00
Augustin Trancart
dc750b8237 postgresqlPackages.postgis: 3.4.2 -> 3.4.3 2024-09-20 23:58:45 +02:00
Wolfgang Walther
486633e3f4
postgresqlPackages.system_stats: 3.0 -> 3.2 2024-09-20 19:08:36 +02:00
K900
d8a54461fc Merge remote-tracking branch 'origin/staging-next' into staging 2024-09-20 07:27:56 +03:00
Wolfgang Walther
0c47767641
postgresql: improve fake pg_config in default output
This fixes some build systems which look up the location of pg_config
via the location of the postgres binary itself, e.g. timescaledb,
instead of calling pg_config which is on PATH.

Since the -dev output is correctly placed before the default output of
postgresql in PATH, we can rely on that and call "pg_config" from the
default output's fake script. Only do that, when the one on PATH is
actually a different file, though, to prevent infinite loops.

Resolves #341408
2024-09-19 18:58:20 +02:00
Wolfgang Walther
cd85a62bc2
postgresql_jit.pkgs.postgis: fix build on darwin
We introduced LTO in #294504. At that time, we still needed to use LLVM
/ lld to make this work on darwin. For this to work for extensions, they
would need to set CFLAGS=-fuse-ld=lld, too. However, since #307880
landed, we don't need to do this anymore in the first place, LTO just
works out of the box on darwin.

Resolves #342362
2024-09-19 14:50:23 +02:00
Peder Bergebakken Sundt
8c8c27bb19 treewide: remove unused inputs 2024-09-18 01:00:07 +02:00
Wolfgang Walther
eb709dd183
timescaledb: use replace-fail instead of replace for substituteInPlace
To avoid the deprecation warning.
2024-09-16 21:43:36 +02:00
Wolfgang Walther
52bb840eaf
postgresql: fix regress tests after tzdata update
This was discussed upstream here:
https://postgr.es/m/0a997455-5aba-4cf2-a354-d26d8bcbfae6%40technowledgy.de

This will be in the next minor releases, until then apply the patch.
2024-09-15 17:10:21 +02:00
Euan Kemp
554ec1c0f0 nixos/tests: add postgresql wal2json test
This test should ensure wal2json functions.
I'm planning to upgrade wal2json, so it seems nice to have a test here.

It passes on my machine.
2024-09-14 05:17:49 +00:00
Maximilian Bosch
f191ad8240
postgresql: use systemdLibs (#337441) 2024-08-28 23:28:37 +02:00
github-actions[bot]
32f893fe9e
Merge staging-next into staging 2024-08-27 00:13:33 +00:00
Rebecca Turner
6602decb96
postgis: Do not hardcode test suite path (#336889)
postgis: Fix test suite

Fixes this failure:

```
Creating database 'postgis_reg-3.4'.
sh: line 1: /tmp/pgis_reg/regress_log: Permission denied
2024-08-23 19:26:18.810 UTC [3295760] FATAL:  database "postgis_reg-3.4" does not exist
psql: error: FATAL:  database "postgis_reg-3.4" does not exist
Loading unpackaged components from /tmp/nix-build-postgis-3.4.2.drv-0/postgis-3.4.2/regress/00-regress-install/nix/store/kg8g82wxhar9iadxrd3pra3af174khpb-postgis-3.4.2/share/postgresql/contrib/postgis
Loading PostGIS into 'postgis_reg-3.4'
sh: line 1: /tmp/pgis_reg/regress_log: Permission denied
 failed (Error encountered loading /tmp/nix-build-postgis-3.4.2.drv-0/postgis-3.4.2/regress/00-regress-install/nix/store/kg8g82wxhar9iadxrd3pra3af174khpb-postgis-3.4.2/share/postgresql/contrib/postgis/postgis.sql: /tmp/pgis_reg/regress_log)
make: *** [regress/runtest.mk:24: check-regress] Error 1
```
2024-08-26 11:39:19 -07:00
github-actions[bot]
ba8924e6a0
Merge staging-next into staging 2024-08-26 00:13:41 +00:00
Ivan Trubach
2f9c580c6f postgresql: use systemdLibs
Reduces the set of dependencies required to build PostgreSQL.
2024-08-26 01:48:49 +03:00
Wolfgang Walther
050689db30
treewide: fix pg_config / postgresql headers moved to dev output
This was supposed to happen in #294504, but the commit was accidentally
left out when splitting off some libpq-related changes. Originated in
#179962, by Sandro.

Co-authored-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2024-08-24 15:44:10 +02:00
Bruno Bigras
c64122f97d postgresqlPackages.hypopg: 1.4.0 -> 1.4.1 2024-08-24 01:10:13 -04:00
Wolfgang Walther
73cb40366d
postgresql: refactor to simplify condition
glibc is not available on darwin anyway and isGnu is just shorter.
2024-08-23 21:37:49 +02:00
Wolfgang Walther
dfde86f738
postgresql: refactor removal of references in bitcode files
This prevents silently ignoring errors from "find".
2024-08-23 21:37:49 +02:00
Wolfgang Walther
94d432ce88
postgresql: remove references to llvm-dev on darwin as well
The !isDarwin condition seems to have been put in place only because of the
use of patchelf, which in turn seemed to be necessary because of nuke-refs.

Replacing the big nuke with the more granular remove-references-to allows
enabling this for darwin, too.
2024-08-23 21:37:49 +02:00
Wolfgang Walther
435f51c37f
postgresql: split dev output
This splits a dev output to make the default output not depend on any
build dependencies anymore. This also avoids removing references from
pgxs' Makefile this way, which should, at least theoretically, be good
to build extensions via pgxs, making sure they use the same tooling.

ecpg is the "embedded SQL C preprocessor", which is certainly a dev
tool.

Most important, for closure size anyway, is to move pg_config to the dev
output, since it retains paths to all the other outputs.

The only thing with references to the dev output remaining is then the
postgres binary itself. It contains all the output paths, because it
shows those in the pg_config system view. There is no other way than
to nuke those references to avoid circular dependencies between outputs
- and blowing up closure size again.
2024-08-23 21:37:49 +02:00
Wolfgang Walther
77977286d8
postgresql: move libecpq to lib output
This library is used by other packages, so should be in the lib output.

By removing unused sections, libecpg will not contain any references to other
outputs and thus does not increase the closure for the lib output anymore.
This will also help massively when splitting a dev output later.

As a side-effect, this also unbreaks pkgsMusl.postgresql_12_jit and
pkgsMusl.postgresql_13_jit. For, at least to me, unknown reasons, those build
fine now.
2024-08-23 21:37:49 +02:00
Wolfgang Walther
5547322a0c
postgresql: move dynamic modules to default output
Dynamic modules are technically libraries, but are not used by other packages.
Instead they are loaded by PostgreSQL itself, e.g. as extensions. Those just
increased the size of the lib output without benefit.

This removes the NIX_PGLIBDIR hack introduced in #17838 and instead makes sure
that pg_config always returns the correct PGLIBDIR. The test for postgis
introduced in the same PR is still passing with the change.
2024-08-23 21:37:43 +02:00
Peder Bergebakken Sundt
e471916645
treewide: passthru nixos test (#334491) 2024-08-18 00:29:43 +02:00
Kirill Radzikhovskyy
b023a8a2f1 postgresqlPackages.postgis: sha256 -> hash 2024-08-15 13:56:01 +10:00
Kirill Radzikhovskyy
d3c9639c75 postgresqlPackages.postgis: nixfmt-rfc-style 2024-08-15 13:55:26 +10:00
Kirill Radzikhovskyy
068c11900f postgresqlPackages.postgis: enable tests 2024-08-15 13:55:12 +10:00
Vladimír Čunát
b99f751acd
Merge #333461: postgres: security+bugfix updates
...into staging-next

https://www.postgresql.org/about/news/postgresql-164-158-1413-1316-1220-and-17-beta-3-released-2910/
2024-08-10 07:26:13 +02:00
Sandro Jäckel
632c9dd1c1
postgresql_16: 16.3 -> 16.4
https://www.postgresql.org/support/security/CVE-2024-7348/
Fixes CVE-2024-7348
2024-08-09 16:19:07 +02:00
Sandro Jäckel
47ed51b959
postgresql_15: 15.7 -> 15.8
https://www.postgresql.org/support/security/CVE-2024-7348/
Fixes CVE-2024-7348
2024-08-09 16:19:07 +02:00
Sandro Jäckel
592b5577ed
postgresql_14: 14.12 -> 14.13
https://www.postgresql.org/support/security/CVE-2024-7348/
Fixes CVE-2024-7348
2024-08-09 16:19:06 +02:00
Sandro Jäckel
e9fbb584ea
postgresql_13: 13.15 -> 13.16
https://www.postgresql.org/support/security/CVE-2024-7348/
Fixes CVE-2024-7348
2024-08-09 16:19:06 +02:00
Sandro Jäckel
84a9400564
postgresql_12: 12.19 -> 12.20
https://www.postgresql.org/support/security/CVE-2024-7348/
Fixes CVE-2024-7348
2024-08-09 16:19:06 +02:00
github-actions[bot]
5ca6720152
Merge master into staging-next 2024-08-06 18:01:00 +00:00
Matthew Bauer
2a13929e1f
postgresqlPackages.timescaledb_toolkit: fix on macos (#332353)
* postgresqlPackages.timescaledb_toolkit: fix on macos

It looks like the macOS linker doesn’t like that some of the symbols
are undefined in the extension. They will be provided by the postgres
binary, but macOS linker checks that all symbols are defined.
Apparently, Linux allows these symbols to be undefined.

The -undefined flag changes this behavior:

> Specifies how undefined symbols are to be treated. Options are:
> error, warning, suppress, or dynamic_lookup. The default is error.

So, setting to dynamic_lookup makes the most sense here, and makes
this package work on macOS. I tried to see if pgvecto-rs, which also
uses buildPgrxExtension, would build. Unfortunately, it gave other
errors.

More information on the bug here: https://github.com/supabase/nix-postgres/issues/10

* Remove stdenv
2024-08-06 10:17:48 -05:00
K900
4f29b5a16b Merge remote-tracking branch 'origin/staging-next' into staging 2024-07-31 08:57:17 +03:00
Kirill Radzikhovskyy
1e5b7660b2 postgresql: fix postgis
nixosTests.postgis is failing due to libxml2 update
2024-07-31 07:53:33 +10:00
Diogo Correia
da5ae1bd60
postgresqlPackages.pgvecto-rs: 0.2.1 -> 0.3.0 2024-07-30 01:23:15 +01:00
Aleksana
56d654d41f
Merge pull request #324978 from ivan/unmaintain-two
prisma-engines, postgresqlPackages.pg_embedding: remove myself from maintainers
2024-07-29 19:36:25 +08:00
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
Vladimír Čunát
3f0fd423e3
postgresql_*: upstream patches to support libxml2-2.13
/cc PR #326637
2024-07-21 08:43:52 +02:00
Aleksana
554ada78db
Merge pull request #314963 from sdier/timescaledb2
timescaledb_toolkit: Fix license metadata to TSL license.
2024-07-14 23:56:07 +08:00
aleksana
592e3845c4 treewide: sha256 -> hash attribute for fetchgit 2024-07-14 19:10:08 +08:00
Ivan Kozik
8fbfdcec4a postgresqlPackages.pg_embedding: remove ivan from maintainers 2024-07-06 06:18:15 +00:00
Yt
c07812f979
Merge pull request #320302 from diogotcorreia/pgvecto-rs-fix-rust-1-78
postgresqlPackages.pgvecto-rs: fix build failure on rust 1.78
2024-06-23 00:32:44 +00:00
Sandro
e5aa50d733
Merge pull request #319256 from shivaraj-bh/system_stats 2024-06-20 12:11:16 +02:00
shivaraj-bh
da694466aa system_stats: init at 3.0 2024-06-19 21:18:44 +05:30
Maximilian Bosch
6d8d21411e
Merge pull request #317281 from wolfgangwalther/postgresql-eol-policy
postgresql: add readme with eol-policy
2024-06-18 15:54:37 +00:00
Leona Maroni
c4cb6eb3c9
Merge pull request #315851 from LeSuisse/v8-mark-vulnerable
v8: mark vulnerable, move dependents to `nodejs.libv8`
2024-06-17 10:15:09 +02:00
Diogo Correia
005c08d4f6
postgresqlPackages.pgvecto-rs: fix build failure on rust 1.78 2024-06-16 16:52:19 +01:00
Wolfgang Walther
0487937af3
postgresql: add readme with eol-policy
This was discussed and agreed on in [1].

[1]: https://github.com/NixOS/nixpkgs/pull/310580#discussion_r1597284693
2024-06-14 09:38:23 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Wolfgang Walther
f43616270a
postgresql: add wolfgangwalther as maintainer 2024-06-04 20:56:47 +02:00
Sigmanificient
d48a9bb622 treewide: remove unused fetchpatch arguments 2024-06-04 12:40:25 +02:00
Sigmanificient
8b473d1a27 treewide: remove unused fetch* (and other) arguments 2024-05-30 13:36:48 +02:00
Thomas Gerbet
773c17e752 postgresqlPackages.plv8: 3.1.10 -> 3.2.2
Changes:
https://github.com/plv8/plv8/blob/v3.2.2/Changes
2024-05-30 11:30:47 +02:00
Scott Dier
d5c9f4b273 timescaledb_toolkit: Fix license metadata to TSL license. 2024-05-27 00:46:47 +02:00
Jussi Kuokkanen
8064d28a4f pkgs/servers: remove licenses.gpl2 2024-05-23 11:49:42 +03:00
github-actions[bot]
350d12c2fb
Merge master into staging-next 2024-05-16 12:01:25 +00:00
jopejoe1
0fad153e47 postgresql16Packages.pg_libversion: 2.0.0 -> 2.0.1 2024-05-15 18:34:33 +02:00
jopejoe1
8dbfbe8e5f postgresql16Packages.pg_libversion: add update script 2024-05-15 18:11:02 +02:00
github-actions[bot]
5ecf9476cb
Merge staging-next into staging 2024-05-14 00:02:48 +00:00
Diogo Correia
101e8a0a2b
pgvecto-rs: mark as broken in pg12 and pg13
Upstream (accidentally) broke support for postgresql 12 and 13 on
v0.2.1 by changing the signature of the `from_datum` function[^1].
This went unnoticed since the release branch `0.2` did not have CI.
Furthermore, they are removing support for these versions of postgresql
on v0.3.0[^2].

[^1]: 97e861d51d
[^2]: https://github.com/tensorchord/pgvecto.rs/issues/343
2024-05-13 09:25:06 +01:00
Maximilian Bosch
3ad254b1c4
postgresql: drop obsolete musl checkPhase fix 2024-05-11 18:23:38 +02:00
Maximilian Bosch
0616f7a44f
postgresql_16: 16.2 -> 16.3, fix CVE-2024-4317
Announcement: https://www.postgresql.org/about/news/postgresql-163-157-1412-1315-and-1219-released-2858/
2024-05-11 18:09:19 +02:00
Maximilian Bosch
1f657f2ce9
postgresql_15: 15.6 -> 15.7, fix CVE-2024-4317
Announcement: https://www.postgresql.org/about/news/postgresql-163-157-1412-1315-and-1219-released-2858/
2024-05-11 18:09:18 +02:00
Maximilian Bosch
90fdcc6112
postgresql_14: 14.11 -> 14.12, fix CVE-2024-4317
Announcement: https://www.postgresql.org/about/news/postgresql-163-157-1412-1315-and-1219-released-2858/
2024-05-11 18:09:18 +02:00
Maximilian Bosch
3b6b7fda09
postgresql_13: 13.14 -> 13.15
Accouncement: https://www.postgresql.org/about/news/postgresql-163-157-1412-1315-and-1219-released-2858/
2024-05-11 18:09:18 +02:00
Maximilian Bosch
c69eb60b61
postgresql_12: 12.18 -> 12.19
Announcement: https://www.postgresql.org/about/news/postgresql-163-157-1412-1315-and-1219-released-2858/
2024-05-11 18:09:17 +02:00
OPNA2608
92dcac9339 postgresqlPackages.tds_fdw: unstable-2024-02-10 -> 2.0.3-unstable-2024-02-10 2024-05-05 22:45:23 +02:00
OPNA2608
77f1d8831c postgresqlPackages.pgjwt: unstable-2023-03-02 -> 0-unstable-2023-03-02 2024-05-05 22:45:22 +02:00
Vladimír Čunát
d157c07324
Merge branch 'master' into staging-next 2024-04-25 20:43:34 +02:00
github-actions[bot]
d0efe40740
Merge master into staging-next 2024-04-25 06:01:20 +00:00
Mario Rodas
183a604e7a
Merge pull request #305572 from wolfgangwalther/remove-promscale-pgx
promscale_extension,buildPgxExtension: remove
2024-04-24 22:11:14 -05:00
Mario Rodas
2becf6e837 maintainers: drop marsam 2024-04-24 04:20:00 +00:00
github-actions[bot]
9c36f57e91
Merge staging-next into staging 2024-04-22 06:01:32 +00:00
Mario Rodas
c30c183bae postgresqlPackages.lantern: set pname to postgresql-lantern
To avoid Repology to mistake it for another project named Lantern.
2024-04-21 04:20:00 +00:00
Wolfgang Walther
a0a1328606
buildPgxExtension: remove old versions
pgx had been renamed to pgrx in April 2023 already [1]. Newer versions
are already in nixpkgs as pgrx. Since the previous commit removed
the only remaining instance of a package still depending on
pgx 0.6.1, we can now remove all of buildPgxExtension and cargo-pgx.

[1]: https://github.com/pgcentralfoundation/pgrx/issues/1106
2024-04-20 20:10:13 +02:00
Wolfgang Walther
945a3bbb8b
postgresqlPackages.promscale_extension: remove deprecated and broken package
postgresql14Packages.promscale_extension breaks with:

  Error:
    0: `pgx-0.6.1` shouldn't be used with `cargo-pgx-0.7.4`,
    please use `pgx = "~0.7.4"` in your `Cargo.toml`.

However, pinning cargo-pgx to 0_6_1 via the following

  buildPgxExtension.override { cargo-pgx = cargo-pgx_0_6_1; }

does not work either, because the build then fails with:

  thread 'main' panicked at /build/promscale_extension-0.8.0-vendor.tar.gz/proc-macro2/src/fallback.rs:756:9:
  "__mbstate_t_union_(unnamed_at_/nix/store/ij144ma6vs8acil8r9hgr8xkb1dp9azg-glibc-2_39-5-dev/include/bits/types/__mbstate_t_h_16_3)" is not a valid Ident

This seems to be related to [1], which indicates that this is a
problem with newer LLVM / clang toolchains.

At the same time th upstream package is deprecated / archived since
the 2nd of April 2024 [2]. Additionally this package is unfree and
thus very unlikely to be forked. Since we can't expect this to be
fixed, the only sensible thing to do is to remove the package.

[1]: https://github.com/rust-lang/rust-bindgen/issues/2312
[2]: https://github.com/timescale/promscale/issues/1836
2024-04-20 20:10:13 +02:00
Maximilian Bosch
cba6af761a
Merge pull request #293996 from wolfgangwalther/postgresql-cleanup
postgresql: more cleanup
2024-04-19 13:53:20 +00:00
github-actions[bot]
4908c48bf5
Merge master into staging-next 2024-04-15 12:01:00 +00:00
R. Ryantm
b9a629203c postgresql13Packages.lantern: 0.2.3 -> 0.2.4 2024-04-15 03:41:04 +00:00
Weijia Wang
f3a1652b09 Merge branch 'master' into staging-next 2024-04-13 19:10:53 +02:00
Maximilian Bosch
2705b9062f
Merge pull request #299136 from wolfgangwalther/pg-safeupdate
postgresql{12,13}Packages.pg_safeupdate: 1.5 -> 1.4
2024-04-13 16:47:51 +00:00
Vladimír Čunát
24d4f2cd52
Merge branch 'staging' into staging-next
Conflicts (tried to quickly resolve somehow, checked eval):
	pkgs/development/python-modules/apsw/default.nix
	pkgs/development/python-modules/mido/default.nix
	pkgs/development/python-modules/pytest-bdd/default.nix
	pkgs/development/python-modules/sparse/default.nix
2024-04-12 07:06:54 +02:00
R. Ryantm
f9157e0977 postgresql13Packages.lantern: 0.2.2 -> 0.2.3 2024-04-10 03:00:50 +00:00
Weijia Wang
3f59355d84 Merge branch 'staging-next' into staging 2024-04-09 08:26:23 +02:00
R. Ryantm
0c979c7daf postgresql16JitPackages.pgtap: 1.3.2 -> 1.3.3 2024-04-09 01:39:31 +00:00
github-actions[bot]
882e0f27d3
Merge staging-next into staging 2024-04-05 18:01:27 +00:00
Marko Mušnjak
7cea84dade
apache_datasketches: update to 1.7.0 2024-04-04 15:21:59 +02:00
Wolfgang Walther
81201ce889
pkgsMusl.postgresql: add TODO to run all regression tests
This was fixed upstream as a result of this discussion:

https://www.postgresql.org/message-id/flat/ef1b47df-0808-4bd7-b08c-5153d5d75f4c%40technowledgy.de
2024-04-04 08:41:19 +02:00
Wolfgang Walther
30fa4dca88
pkgsMusl.postgresql: remove icu-collations-hack patch
This was introduced in #228349, but doesn't seem necessary to build for pkgsMusl.

In fact the patch itself seems to be very specific about a stripped down icu
package in Alpine Linux, which does not apply to nixpkgs.
2024-04-04 08:41:19 +02:00
Wolfgang Walther
ec7b4581d7
pkgsMusl.postgresql: mark v12 and v13 with JIT as broken
Those currently don't build on master, not sure whether they ever built
correctly in the first place.
2024-04-04 08:41:18 +02:00
Wolfgang Walther
9f90ad30fa
postgresql: enable parallel building on darwin
This was disabled to fix #51093. The related discussion upstream revealed that this
has been fixed in [1] for v12+. Since v12 is our oldest supported version right now,
we should be able to safely enable parallel building on darwin again.

Furthermore, it seems that this kind of issue was also fixed in #51221 and #51408
for the general case.

[1]: 826eff57c4
2024-04-04 08:41:18 +02:00
Wolfgang Walther
4adcc41cd9
postgresql: move explicit libxml2 include behind version flag
This was introduced in #44083 to fix cross building, where xml2-config
wouldn't run on the host platform. This was fixed upstream two years
later [1], so that from v13 on pkg-config is used before xml2-config is.

Once v12 is EOL, we can remove this entirely.

[1]: 0bc8cebdb8
2024-04-04 08:41:18 +02:00
Wolfgang Walther
6c1e2a4401
postgresql: remove preConfigure CC variable
This seems to have been done better by now. There are no references kept
and the build does not fail when removing it.
2024-04-04 08:41:18 +02:00
Wolfgang Walther
c3c52231f0
postgresql: remove left-over LC_ALL environment variable
This was introduced in 65fd8f3f48 around 20 years
ago as LANG=en_US, later changed to LC_ALL=en_US and LC_ALL=C to avoid bash
warnings. This might have been relevant to run initdb during the check phase, but
the PostgreSQL docs [1] say this today:

  For implementation reasons, setting LC_ALL does not work for this purpose

Therefore it can be removed safely.

[1]: https://www.postgresql.org/docs/current/regress-run.html#REGRESS-RUN-LOCALE
2024-04-04 08:41:18 +02:00
Wolfgang Walther
154215cfd8
postgresql: rename patches
Trying to understand what each patch does made me come up with some more
descriptive names:

- Renaming the two disable-xxx patches to a common names makes it immediately
  clear that one replaces the other depending on version number.
- findstring was really not descriptive at all.
- hardcode-pgxs-path will be extended with more paths for split outputs in
  a later commit. Renaming here already to allow git to better track renames.

Finally replacing HARDCODED_PGXS_PATH with $out/lib in the last patch, makes
it easier to understand what the end result will look like when reading the
patch.
2024-04-04 08:41:18 +02:00
Wolfgang Walther
605618c2e8
postgresql: clean up patches
More cosmetic than anything else. The description in findstring.patch was
duplicated, postgresql-9.6.1 references confusing. Timestamps are not
needed, that's what git blame is for.
2024-04-04 08:41:18 +02:00
Wolfgang Walther
29d5adb676
postgresql: change pname for postgresql_jit attributes to postgresql-jit
This is for consistency between the top-level attribute and the respective package
name, which makes it easier to track derivations.
2024-04-04 08:41:17 +02:00
Wolfgang Walther
aea4ba847a
postgresql: remove thisAttr argument by calling tests directly
Previously, it was not possible to run tests on an overridden derivation, because
the derivation under test was always pulled from pkgs.

With this change, the following will return the same test:

  postgresql_jit.tests

and

  (postgresql.override { jitSupport = true; }).tests
2024-04-04 08:41:17 +02:00
Silvan Mosberger
b9261ad2e6
Merge pull request #301066 from philiptaron/compatible-typos
treewide: fix typos around "compatible" and "compatibility"
2024-04-04 04:18:31 +02:00
R. Ryantm
25a5f227f7 postgresql15JitPackages.pg_partman: 5.0.1 -> 5.1.0 2024-04-03 02:29:01 +00:00
Philip Taron
562b2c5896
postgresqlPackages.pg_bigm: fix typo: compatiblity to compatibility 2024-04-02 14:51:42 -07:00
Philip Taron
269a99d6b8
postgresqlPackages.citus: fix typo: compatibilty to compatibility 2024-04-02 14:45:11 -07:00
Wolfgang Walther
5e0eeb362b
postgresql{12,13}Packages.pg_safeupdate: 1.5 -> 1.4
pg_safeupdate was updated to 1.5 in #269755. v1.5 is not compatible with
PostgreSQL 12 and 13 anymore, so those were marked as broken.

However, this blocks anyone using PostgreSQL 12 or 13 with pg_safeupdate
from updating nixpkgs.

Instead, the old version should have been kept for PG 12 and 13.
2024-03-31 19:32:31 +02:00
Wolfgang Walther
7a358ffd0e
postgresqlPackages.postgis: add myself as maintainer 2024-03-31 19:32:31 +02:00
Wolfgang Walther
156f69bbcb
postgresqlPackages.pg_safeupdate: add myself as maintainer 2024-03-31 19:32:29 +02:00
Ivan Mincik
75e7b2b097
Merge pull request #300347 from marsam/update-pgrouting
postgresqlPackages.pgrouting: 3.6.1 -> 3.6.2
2024-03-31 14:24:44 +00:00
R. Ryantm
b7c2c96026 postgresql12JitPackages.plpgsql_check: 2.7.4 -> 2.7.5 2024-03-31 02:12:10 +00:00
Mario Rodas
ce8a906462 postgresqlPackages.pgrouting: 3.6.1 -> 3.6.2
Diff: https://github.com/pgRouting/pgrouting/compare/v3.6.1...v3.6.2

Changelog: https://github.com/pgRouting/pgrouting/releases/tag/v3.6.2
2024-03-30 04:20:00 +00:00
R. Ryantm
334b49ce2a postgresql13Packages.lantern: 0.2.1 -> 0.2.2 2024-03-27 13:43:45 +00:00
Mario Rodas
93883e16ec
Merge pull request #299094 from marsam/add-pg_roaringbitmap
postgresqlPackages.pg_roaringbitmap: init at 0.5.4
2024-03-26 18:12:39 -05:00
Mario Rodas
e4b3f3f652
Merge pull request #298190 from jopejoe1/postgresql-libversion
postgresqlPackages.pg_libversion: init at 2.0.0
2024-03-26 00:06:39 -05:00
Nick Cao
60f5ab8a3e
postgresql: enable spinlock on riscv 2024-03-25 16:15:05 -04:00
Mario Rodas
2d8a9a0bf4 postgresqlPackages.pg_roaringbitmap: init at 0.5.4 2024-03-25 04:20:00 +00:00
Yt
86de7cd867
Merge pull request #296336 from marsam/refactor-cargo-pgrx
cargo-pgrx: refactor
2024-03-23 11:51:28 +00:00
jopejoe1
b7cdcb35cb postgresqlPackages.pg_libversion: init at 2.0.0 2024-03-22 21:26:54 +01:00
Maximilian Bosch
0cf4b07939
Merge pull request #297155 from Ma27/fix-pg_anonymizer-meta
postgresqlPackages.pg_anonymizer: fix meta
2024-03-22 17:00:02 +00:00
R. Ryantm
4ace79fb70 postgresql16JitPackages.pg_uuidv7: 1.4.1 -> 1.5.0 2024-03-22 01:43:07 +00:00
Maximilian Bosch
8ec284b8c4
postgresqlPackages.pg_anonymizer: fix meta
Previously the entire `meta` section from `pg-dump-anon` was copied
over including `mainProgram` which doesn't belong here. To avoid similar
issues, fields from the meta section of pg-dump-anon are copied over
explicitly.
2024-03-19 12:25:48 +01:00