Skip to content

Commit da0adc3

Browse files
committed
fix: error in creating function for 9.5,9.6 versions
1 parent e987395 commit da0adc3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mamonsu/tools/bootstrap/sql.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@
128128
RETURNS TABLE(application_name TEXT, {8} total_lag NUMERIC ) AS $$
129129
SELECT
130130
CONCAT(application_name, ' ', pid) as application_name,
131-
{6}
132-
pg_{7}_diff(pg_current_{7}(), replay_{9}) AS total_lag
131+
{6} pg_{7}_diff(pg_current_{7}(), replay_{9}) AS total_lag
133132
FROM pg_stat_replication
134133
$$ LANGUAGE SQL SECURITY DEFINER;
135134
"""

0 commit comments

Comments
 (0)