about summary refs log tree commit diff
path: root/nixos/tests/postgresql.nix
AgeCommit message (Collapse)AuthorFilesLines
2023-10-30nixos/postgresql: remove postgresql_11-backup-all testMaximilian Bosch1-3/+1
I don't really understand why this is only for a single version, so I figured I'd just add this to the test matrix to also cover this test-case for each major. Now, there's also one thing less to take care of when removing old postgresql versions.
2023-03-29nixos/tests/postgresql: fix deprecation warningMaximilian Bosch1-1/+1
2022-12-02nixosTests.postgresql: Fix attribute name shadowingRobert Hensing1-3/+5
2022-12-02Merge remote-tracking branch 'upstream/master' into allow-configuration-of-rolesRobert Hensing1-1/+1
2022-11-28Add declarative role config to postgres.serviceJonathan Lorimer1-2/+89
remove trailing whitespace switch docs to markdown use mdDoc remove trailing whitespace get rid of double space add tests and update options to use submodule remove whitespace remove whitespace use mdDoc remove whitespace make default a no-op make ALTER ROLE a single sql statement document null case
2022-03-28treewide: machine -> nodes.machineRobert Hensing1-1/+1
2021-08-20nixos/test: some test fixes in succession of #125992David Arnold1-0/+1
2021-08-05nixos postgresql-backup: add `compression` optionRobert Helgesson1-6/+30
This option allows basic configuration of the compression technique used in the backup script. Specifically it adds `none` and `zstd` as new alternatives, keeping `gzip` as the default.
2021-06-05nixos/postgresqlBackup: Only replace backup when successfulRobert Hensing1-0/+22
Previously, a failed backup would always overwrite ${db}.sql.gz, because the bash `>` redirect truncates the file; even if the backup was going to fail. On the next run, the ${db}.prev.sql.gz backup would be overwritten by the bad ${db}.sql.gz. Now, if the backup fails, the ${db}.in-progress.sql.gz is in an unknown state, but ${db}.sql.gz will not be written. On the next run, ${db}.prev.sql.gz (our only good backup) will not be overwritten because ${db}.sql.gz does not exist.
2021-01-10treewide: simplify pkgs.stdenv.lib -> pkgs.libDominik Xaver Hörl1-1/+1
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
2020-01-09nixosTests.initdb: Move code to existing postgres testJacek Galowicz1-0/+3
2020-01-09nixosTests.postgres: Refactor codeJacek Galowicz1-16/+26
2019-11-04nixos/postgres: Port test to pythonJacek Galowicz1-20/+24
2019-02-04nixos/tests/postgresql: fix regression from #55106Pierre Bourdon1-1/+1
2019-02-03postgresql test: fix (#55106)Danylo Hlynskyi1-10/+5
Commit https://github.com/NixOS/nixpkgs/pull/55097 didn't modify all usages of postgresql/default.nix. Also, replaced "random" pg with pg11. Random pg was always pg10.
2019-01-26postgresql: reorganize package and its extensions (#54319)Danylo Hlynskyi1-2/+2
* postgresql: reorganize package and it's extensions Extracts some useful parts of https://github.com/NixOS/nixpkgs/pull/38698, in particular, it's vision that postgresql plugins should be namespaced.
2019-01-19nixos/postgresqlBackup: add backupAll optionJörg Thalheim1-8/+19
For large setups it is useful to list all databases explicit (for example if temporary databases are also present) and store them in extra files. For smaller setups it is more convenient to just backup all databases at once, because it is easy to forget to update configuration when adding/renaming databases. pg_dumpall also has the advantage that it backups users/passwords. As a result the module becomes easier to use because it is sufficient in the default case to just set one option (services.postgresqlBackup.enable).
2018-11-14Merge pull request #49840 from markuskowa/fix-pgBackupSamuel Dionne-Riel1-0/+1
nixos/postgresqlBackup: set to umask to 0077
2018-11-11tests: refactor to carry the package set as an argumentLéo Gaspard1-2/+7
This way, the package set will be possible to pass without re-importing all the time
2018-11-06nixos/postgresqlBackup: set to umask to 0077Markus Kowalewski1-0/+1
* Ensure that the backup file is only readable by the owner * Add file permission test to tests
2018-07-20[bot] nixos/*: remove unused arguments in lambdasvolth1-1/+1
2018-06-17nixos/pgbackup: add postgres backup to the postgres testMarkus Kowalewski1-0/+7
2017-07-19nixos tests: run postgresql tests with postgres userRodney Lorrimar1-8/+10
2017-07-15postgresql: enable XML functionsRodney Lorrimar1-0/+3
I suspect these functions aren't widely used, but they are enabled in PostgreSQL on Ubuntu and Arch.
2017-07-15nixos tests: fix postgresql testsRodney Lorrimar1-1/+4
1. Needs to call makeTest or else nothing happens when you run `nix-build nixos/tests/postgresql.nix`. 2. Tests run as root, so there needs to be a corresponding user in PostgreSQL.
2017-02-21test all postgresql versions, test server restart (#1735)Tomasz Czyż1-21/+41
2016-01-20nixos: add test for postgresql, fixes #11146Rok Garbas1-0/+26