From 02f6d816de324936ba9b8c7274a338d79e3e59e0 Mon Sep 17 00:00:00 2001 From: Graham McInitre Date: Thu, 16 Jul 2026 09:23:44 -0500 Subject: [PATCH] fix: upgrade Nix PostgreSQL from 16 to 17 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change postgresql_16 → postgresql_17 in shell.nix (17.10 available) - Both postgis and timescaledb confirmed available for PG17 - Remove PG17-only transaction_timeout SET from structure.sql (dump was already PG17, now compatible with running server) - Auto-reinit triggers on version file mismatch --- nix/shell.nix | 4 ++-- priv/repo/structure.sql | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/nix/shell.nix b/nix/shell.nix index 239e7d55..74e8853d 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -6,7 +6,7 @@ # Elixir/Erlang elixir, # Databases and caches - postgresql_16, + postgresql_17, redis, # SNMP tools net-snmp, @@ -27,7 +27,7 @@ let # PostgreSQL with TimescaleDB and PostGIS extensions - pg = postgresql_16.withPackages (ps: [ + pg = postgresql_17.withPackages (ps: [ ps.timescaledb ps.postgis ]); diff --git a/priv/repo/structure.sql b/priv/repo/structure.sql index 13f2ea74..8411ecad 100644 --- a/priv/repo/structure.sql +++ b/priv/repo/structure.sql @@ -10,7 +10,6 @@ SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; -SET transaction_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false);