DD.WellWorkover.Cloud/AsbCloudDb/UsefulQueries/timescale_restore_dump.sql

11 lines
274 B
SQL

create database postgres;
create schema public;
CREATE EXTENSION IF NOT EXISTS timescaledb;
SELECT timescaledb_pre_restore();
\! pg_restore -Fc -d postgres dump_2022-01-11.bak
SELECT timescaledb_post_restore();
select * from t_telemetry_message ttm where id_event = 206;