colony-psql: Upgrade PostgreSQL to 18
Return the container to `mine` with PostgreSQL 18. The live cluster was migrated from 14 with `pg_upgrade --link` before this config first started. The new cluster was initialized with `-E UTF8 --locale=en_US.UTF-8 --no-data-checksums` to match the old one, and every B-tree index on a `character(n)` column was reindexed afterwards because `amcheck` rejected their 14-built deduplication flag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
31b5e3b608
commit
288d68b954
2 files changed
+4
-5
No files matched your search
@@ -5,11 +5,11 @@ database, the containers (and the `git` VM) connect here over the `ctrs` network
|
|||||||
|
|
||||||
- **Source:** [`shill/containers/colony-psql.nix`](../../../../../nixos/boxes/colony/vms/shill/containers/colony-psql.nix)
|
- **Source:** [`shill/containers/colony-psql.nix`](../../../../../nixos/boxes/colony/vms/shill/containers/colony-psql.nix)
|
||||||
- **Host:** NixOS container on [`shill`](../README.md)
|
- **Host:** NixOS container on [`shill`](../README.md)
|
||||||
- **nixpkgs:** `mine-stable`. NixOS 26.05 still packages PostgreSQL 14.
|
- **nixpkgs:** `mine`
|
||||||
|
|
||||||
## Role
|
## Role
|
||||||
|
|
||||||
- **PostgreSQL 14** with TCP/IP enabled, reachable from the whole colony address space using `md5`
|
- **PostgreSQL 18** with TCP/IP enabled, reachable from the whole colony address space using `md5`
|
||||||
authentication. The firewall allows `5432`.
|
authentication. The firewall allows `5432`.
|
||||||
- Local `peer` auth maps `postgres`, `root`, `netdata` and `dev` to the `postgres` superuser via
|
- Local `peer` auth maps `postgres`, `root`, `netdata` and `dev` to the `postgres` superuser via
|
||||||
the ident map.
|
the ident map.
|
||||||
|
|||||||
@@ -6,8 +6,7 @@ in
|
|||||||
{
|
{
|
||||||
nixos.systems.colony-psql = { config, ... }: {
|
nixos.systems.colony-psql = { config, ... }: {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
# TODO: Migrate PostgreSQL 14 to a supported major release, then return to mine.
|
nixpkgs = "mine";
|
||||||
nixpkgs = "mine-stable";
|
|
||||||
rendered = config.configuration.config.my.asContainer;
|
rendered = config.configuration.config.my.asContainer;
|
||||||
|
|
||||||
assignments = {
|
assignments = {
|
||||||
@@ -64,7 +63,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
postgresql = {
|
postgresql = {
|
||||||
package = pkgs.postgresql_14;
|
package = pkgs.postgresql_18;
|
||||||
enable = true;
|
enable = true;
|
||||||
enableTCPIP = true;
|
enableTCPIP = true;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user