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:
jackos1998andClaude Opus 5.5 committed 2026-11-22 15:11:44 +00:00
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)
- **Host:** NixOS container on [`shill`](../README.md)
- **nixpkgs:** `mine-stable`. NixOS 26.05 still packages PostgreSQL 14.
- **nixpkgs:** `mine`
## 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`.
- Local `peer` auth maps `postgres`, `root`, `netdata` and `dev` to the `postgres` superuser via
the ident map.
@@ -6,8 +6,7 @@ in
{
nixos.systems.colony-psql = { config, ... }: {
system = "x86_64-linux";
# TODO: Migrate PostgreSQL 14 to a supported major release, then return to mine.
nixpkgs = "mine-stable";
nixpkgs = "mine";
rendered = config.configuration.config.my.asContainer;
assignments = {
@@ -64,7 +63,7 @@ in
};
postgresql = {
package = pkgs.postgresql_14;
package = pkgs.postgresql_18;
enable = true;
enableTCPIP = true;