We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9afc0d9 commit 897a13cCopy full SHA for 897a13c
diagnostic.sql
@@ -19,6 +19,18 @@ BEGIN
19
END
20
$$ SET search_path = pg_catalog, pg_temp;
21
22
+CREATE OR REPLACE FUNCTION pg_temp.check_catalog_corruption() RETURNS void LANGUAGE plpgsql AS
23
+$$
24
+DECLARE
25
+ v_count int8;
26
+BEGIN
27
+ SELECT count(*) INTO v_count FROM _timescaledb_catalog.chunk_column_stats WHERE range_start > range_end;
28
+ IF v_count >= 1 THEN
29
+ RAISE WARNING 'Found %s entries in _timescaledb_catalog.chunk_column_stats with range_start > range_end', v_count;
30
+ END IF;
31
+END
32
+$$ SET search_path = pg_catalog, pg_temp;
33
+
34
CREATE OR REPLACE FUNCTION pg_temp.check_scheduler_present() RETURNS void LANGUAGE plpgsql AS
35
$$
36
DECLARE
0 commit comments