From 80b84afb1e5586511b792e75dbcba674dc657bfe Mon Sep 17 00:00:00 2001 From: "Igor K." Date: Tue, 6 Oct 2026 20:35:43 +0300 Subject: [PATCH] fix: run the log-retention SQL in the postgres database 1.3.3 put the dblink job into the SQL but still ran psql against _supabase, where pg_cron refuses the extension; the psql session now runs in postgres, the only database pg_cron accepts in this image version 1.3.4 --- README.md | 2 +- VERSION | 2 +- supaspin | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 530e77a..2120a72 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # supaspin -Version 1.3.3 +Version 1.3.4 Create, list, show and delete throwaway [Supabase](https://supabase.com) instances on a single-node [microk8s](https://microk8s.io) server, from a terminal menu. diff --git a/VERSION b/VERSION index 31e5c84..d0149fe 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.3.3 +1.3.4 diff --git a/supaspin b/supaspin index a4fd329..060b897 100755 --- a/supaspin +++ b/supaspin @@ -39,7 +39,7 @@ import tty import yaml -VERSION = "1.3.3" +VERSION = "1.3.4" CONFIG_PATH = os.environ.get("SUPASPIN_CONFIG", "/etc/supaspin/config.yaml") STATE_DIR = os.environ.get("SUPASPIN_STATE", "/var/lib/supaspin") CHART_REPO = "https://supabase-community.github.io/supabase-kubernetes" @@ -820,7 +820,7 @@ def setup_log_retention(cfg, n, log): scheduling under a fixed job name makes it idempotent.""" log(f" log retention: deleting analytics logs older than {LOG_RETENTION}, every night") kubectl("-n", namespace(n), "exec", f"{fullname(n)}-db-0", "-c", "supabase-db", "--", - "psql", "-U", "supabase_admin", "-d", "_supabase", "-v", "ON_ERROR_STOP=1", + "psql", "-U", "supabase_admin", "-d", "postgres", "-v", "ON_ERROR_STOP=1", "-c", RETENTION_SQL) log(" log retention is set")