From beffd809ecf7390c5dcc705ca7b1ed9fe3455e5b Mon Sep 17 00:00:00 2001 From: Jens Wilke Date: Tue, 8 Oct 2024 13:04:25 +0200 Subject: [PATCH] typo --- check_postgres.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_postgres.pl b/check_postgres.pl index 195d6a2..8fbb06e 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -6760,7 +6760,7 @@ sub check_partman_premake { SELECT parent_table, date FROM ( SELECT i.inhparent::regclass as parent_table, - substring(pg_catalog.pg_get_expr(c.relpartbound, i.inhrelid)::text similar '%TO __#"[0-9]+-[0-9]{2}-[0-9]{2}#"%' escape '#') as date + substring(pg_catalog.pg_get_expr(c.relpartbound, i.inhrelid)::text similar '%TO __#"[0-9]+-[0-9]{2}-[0-9]{2}#"%' escape '#') as date, rank() OVER (PARTITION BY i.inhparent ORDER BY pg_catalog.pg_get_expr(c.relpartbound, i.inhrelid) DESC) FROM pg_inherits i JOIN pg_class c ON c.oid = i.inhrelid