fix: upgrade Nix PostgreSQL from 16 to 17

- 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
This commit is contained in:
Graham McInitre 2026-07-16 09:23:44 -05:00
parent ee853db0b5
commit 02f6d816de
2 changed files with 2 additions and 3 deletions

View file

@ -6,7 +6,7 @@
# Elixir/Erlang # Elixir/Erlang
elixir, elixir,
# Databases and caches # Databases and caches
postgresql_16, postgresql_17,
redis, redis,
# SNMP tools # SNMP tools
net-snmp, net-snmp,
@ -27,7 +27,7 @@
let let
# PostgreSQL with TimescaleDB and PostGIS extensions # PostgreSQL with TimescaleDB and PostGIS extensions
pg = postgresql_16.withPackages (ps: [ pg = postgresql_17.withPackages (ps: [
ps.timescaledb ps.timescaledb
ps.postgis ps.postgis
]); ]);

View file

@ -10,7 +10,6 @@
SET statement_timeout = 0; SET statement_timeout = 0;
SET lock_timeout = 0; SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0; SET idle_in_transaction_session_timeout = 0;
SET transaction_timeout = 0;
SET client_encoding = 'UTF8'; SET client_encoding = 'UTF8';
SET standard_conforming_strings = on; SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false); SELECT pg_catalog.set_config('search_path', '', false);