From 15c45e73618da5bdba13db5d12f4c7436d0f66ee Mon Sep 17 00:00:00 2001 From: Kris Avi Date: Thu, 31 Oct 2024 21:43:24 +0200 Subject: [PATCH] Remove hardcoded pgwatch user in config schema creation --- internal/metrics/postgres_schema.sql | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/metrics/postgres_schema.sql b/internal/metrics/postgres_schema.sql index 3c4c12978..e9a3b2320 100644 --- a/internal/metrics/postgres_schema.sql +++ b/internal/metrics/postgres_schema.sql @@ -1,5 +1,4 @@ -CREATE SCHEMA IF NOT EXISTS pgwatch AUTHORIZATION pgwatch; -SET ROLE TO pgwatch; +CREATE SCHEMA IF NOT EXISTS pgwatch; CREATE TABLE IF NOT EXISTS pgwatch.metric ( name text PRIMARY KEY, @@ -84,4 +83,4 @@ CREATE TABLE pgwatch.migration( INSERT INTO pgwatch.migration (id, version) VALUES - (0, '00179 Apply metrics migrations for v3'); \ No newline at end of file + (0, '00179 Apply metrics migrations for v3');