Commit Graph

8 Commits

Author SHA1 Message Date
Steve Purcell
ae5b96f3ab postgresql_16: init at 16.0 2023-09-16 18:19:06 +02:00
Jan Tojnar
76bd24f8fc postgresql: remove code for no longer supported versions 2022-11-01 12:33:14 +01:00
Mario Rodas
3bfbaf72fa postgresql_10: 10.14 -> 10.15
Release notes: https://www.postgresql.org/docs/10/release-10-15.html
2020-11-19 20:09:49 +01:00
Robert Hensing
83163b43e4 postgresql: Fix timetz test failure
A recent addition to the test suite turned out to be sensitive to
DST. The main code is ok. Patch only required to make test succeed.

See https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=4a071afbd056282746a5bc9362e87f579a56402d
2020-11-04 09:58:09 +01:00
Mario Rodas
27733e2bf6 postgresql_13: init at 13.0
https://www.postgresql.org/docs/13/release-13.html
2020-09-24 04:20:00 +00:00
Matthew Bauer
376bb5108a postgresql: install in $out/share/postgresql
Fixes #62235
2019-05-30 22:30:15 -04:00
aszlig
ef553788d0
postgresql: Move socket dir to /run/postgresql
The default, which is /tmp, has a few issues associated with it:

One being that it makes it easy for users on the system to spoof a
PostgreSQL server if it's not running, causing applications to connect
to their provided sockets instead of just failing to connect.

Another one is that it makes sandboxing of PostgreSQL and other services
unnecessarily difficult. This is already the case if only PrivateTmp is
used in a systemd service, so in order for such a service to be able to
connect to PostgreSQL, a bind mount needs to be done from /tmp to some
other path, so the service can access it. This pretty much defeats the
whole purpose of PrivateTmp.

We regularily run into issues with this in the past already (one example
would be https://github.com/NixOS/nixpkgs/pull/24317) and with the new
systemd-confinement mode upcoming in
https://github.com/NixOS/nixpkgs/pull/57519, it makes it even more
tedious to sandbox services.

I've tested this change against all the postgresql NixOS VM tests and
they still succeed and I also grepped through the source tree to replace
other occasions where we might have /tmp hardcoded. Luckily there were
very few occasions.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @ocharles, @thoughtpolice, @danbst
2019-03-15 04:52:35 +01:00
Austin Seipp
73f56ae191 nixpkgs: move postgresql patches into a common directory
This simply makes it easier to browse the PostgreSQL package directory. More to
come.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-01-19 17:33:32 -06:00