An occasional consistency check (not for connect time) comparing meta.series with the registered series schemas: non-series tables, views, sequences and functions inside a series schema; registered series whose table is missing; series tables without a timestamp column or its BRIN index. Report only; user schemas are never examined. find_schema_problems() fingerprints its body like every other procedure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 lines
506 B
SQL
8 lines
506 B
SQL
-- ============================================================================
|
|
-- Schema version row -- runs last, so a database that has it is complete.
|
|
-- ============================================================================
|
|
-- Keep this string equal to ../VERSION. Clients compare it with the version
|
|
-- they were built for (Python: DB_SCHEMA_VERSION in tsapi_pgdb/_version.py).
|
|
|
|
INSERT INTO meta.schema_version (version, description)
|
|
VALUES ('1.3.0', 'meta.find_series_registry_mismatches()');
|