nixpkgs/pkgs/servers/sql
Danylo Hlynskyi 5443eee47c
nixos/postgresql: support 0750 for data directory (#65245)
* nixos/postgresql: support 0750 for data directory

This is rework of part of https://github.com/NixOS/nixpkgs/pull/46670.
My usecase was to be able to inspect PG datadir as wheel user.

PG11 now allows starting server with 0750 mask for data dir.
`groupAccess = true` now does this automatically. The only thing you have to do
is to set group ownership.

For PG10 and below, I've described a hack how this can be done. Before this PR
hack was impossible. The hack isn't ideal, because there is short
period of time when dir mode is 0700, so I didn't want to make it official.

Test/example is present too.

* postgresql: allow changing initidb arguments via module system

Closes https://github.com/NixOS/nixpkgs/issues/18829

+ some cleanups

* addressed review comments and some fixes

* whoops

* change groupAccess to tristate, to not force `chmod` on dataDir.

Making mask either 0700 or 0750 is too restrictive..

* WIP

* let's not support group mode for versions pre-11.

The only fix is to change mode to 0700 before start, because otherwise postgresql
doesn't start, and error is non-obvious.
2020-02-14 20:51:20 +02:00
..
cockroachdb cockroachdb: fix build on darwin 2019-12-27 05:21:40 +01:00
dolt dolt: init at 0.12.0 (#75693) 2019-12-16 00:58:16 +02:00
mariadb mariadb: mytop add "clear" to PATH 2020-02-03 15:48:18 +01:00
monetdb monetdb: 11.35.3 -> 11.35.9 2020-02-06 20:16:20 +01:00
mssql/jdbc
mysql cmake: remove CMAKE_OSX_DEPLOYMENT_TARGET overrides 2020-01-31 21:52:12 +01:00
oracle-xe treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
percona percona-server: fix build with gcc9 2019-11-03 00:52:53 +01:00
pgbouncer pgbouncer: 1.11.0 -> 1.12.0 (#71746) 2019-10-23 16:52:58 +02:00
pgpool Merge branch 'master' into staging-next 2019-08-24 08:55:37 +02:00
postgresql nixos/postgresql: support 0750 for data directory (#65245) 2020-02-14 20:51:20 +02:00
sqlite/jdbc treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
virtuoso