Hi
I am trying figure how to restore database completely from scratch but with no success (have error after restore database).
Have 3 VM with successfully setup multinode. Some dummy data split acros 2 nodes.
After completly destoryed clusters via pg_dropcluster and pg_createcluster using pg_restore to make backup on all VMs. Created database by hand, turn on timescaledb and turn on SELECT timescaledb_pre_restore();. There is no error during restore procedure
postgres@worker49:/tmp$ pg_restore -Fd -v -d test test
pg_restore: connecting to database for restore
pg_restore: creating EXTENSION “timescaledb”
pg_restore: creating COMMENT “EXTENSION timescaledb”
pg_restore: creating SERVER “worker50”
pg_restore: creating USER MAPPING “USER MAPPING tsdbadmin SERVER worker50”
pg_restore: creating SERVER “worker51”
pg_restore: creating USER MAPPING “USER MAPPING tsdbadmin SERVER worker51”
pg_restore: creating TABLE “public.sensor_data”
pg_restore: creating FOREIGN TABLE “_timescaledb_internal._dist_hyper_1_100_chunk”
…
pg_restore: creating FOREIGN TABLE “_timescaledb_internal._dist_hyper_1_9_chunk”
pg_restore: processing data for table “_timescaledb_cache.cache_inval_bgw_job”
pg_restore: processing data for table “_timescaledb_cache.cache_inval_extension”
pg_restore: processing data for table “_timescaledb_cache.cache_inval_hypertable”
pg_restore: processing data for table “_timescaledb_catalog.hypertable”
pg_restore: processing data for table “_timescaledb_catalog.chunk”
pg_restore: processing data for table “_timescaledb_catalog.dimension”
pg_restore: processing data for table “_timescaledb_catalog.dimension_slice”
pg_restore: processing data for table “_timescaledb_catalog.chunk_constraint”
pg_restore: processing data for table “_timescaledb_catalog.chunk_data_node”
pg_restore: processing data for table “_timescaledb_catalog.chunk_index”
pg_restore: processing data for table “_timescaledb_catalog.compression_chunk_size”
pg_restore: processing data for table “_timescaledb_catalog.continuous_agg”
pg_restore: processing data for table “_timescaledb_catalog.continuous_aggs_bucket_function”
pg_restore: processing data for table “_timescaledb_catalog.continuous_aggs_hypertable_invalidation_log”
pg_restore: processing data for table “_timescaledb_catalog.continuous_aggs_invalidation_threshold”
pg_restore: processing data for table “_timescaledb_catalog.continuous_aggs_materialization_invalidation_log”
pg_restore: processing data for table “_timescaledb_catalog.hypertable_compression”
pg_restore: processing data for table “_timescaledb_catalog.hypertable_data_node”
pg_restore: processing data for table “_timescaledb_catalog.metadata”
pg_restore: processing data for table “_timescaledb_catalog.remote_txn”
pg_restore: processing data for table “_timescaledb_catalog.tablespace”
pg_restore: processing data for table “_timescaledb_config.bgw_job”
pg_restore: processing data for table “public.sensor_data”
pg_restore: executing SEQUENCE SET chunk_constraint_name
pg_restore: executing SEQUENCE SET chunk_id_seq
pg_restore: executing SEQUENCE SET dimension_id_seq
pg_restore: executing SEQUENCE SET dimension_slice_id_seq
pg_restore: executing SEQUENCE SET hypertable_id_seq
pg_restore: executing SEQUENCE SET bgw_job_id_seq
pg_restore: creating INDEX “public.sensor_data_sensor_id_time_idx”
pg_restore: creating INDEX “public.sensor_data_time_idx”
pg_restore: creating TRIGGER “public.sensor_data ts_insert_blocker”
But trying to perform query I had error. I tried both backup only on master and on all nodes.
Someting doing wrong, question is what?
Maybe Multinode don;'t accept pg_restore and must change to pg_basebackup?