fix: reach the log-retention job into _supabase over dblink #10

Merged
igor merged 1 commits from fix/log-retention-pg-cron-dblink into main 2026-10-06 17:34:48 +00:00
1 Commits
Author SHA1 Message Date
Igor K. 2c6e383617 fix: reach the log-retention job into _supabase over dblink
the supabase image pins cron.database_name to postgres, so pg_cron refuses
jobs scheduled from _supabase, where the log tables live; 1.3.2's upgrade
failed on the first live run with 'can only create extension in database
postgres'. The job now runs in postgres and deletes the _analytics
log_events_* rows in _supabase over a local dblink connection, which needs
no password because the image trusts local connections for supabase_admin.
version 1.3.3
2026-10-06 20:34:39 +03:00