Hello,
I'm using Zabbix 5.0.3, Postgresql 11, on CentOS 7. I do use Timescaledb
I want to move my zabbix DB out of it's current postgres cluster to it's own individual one. I spun up a new server with postgres11, and got that all going. However when i do a pg_dumpall (because i want the roles, etc maintained - i'll drop the databases i dont want after the restore), and then attempt to restore it to my new cluster, i get errors. Are these errors ignorable? Or am i restoring wrong??
As the postgres user:
-bash-4.2$ psql -f /mnt/temp_storage/dave/prod_cluster.dump postgres
Here are some snippets of the errors
I'm using Zabbix 5.0.3, Postgresql 11, on CentOS 7. I do use Timescaledb
I want to move my zabbix DB out of it's current postgres cluster to it's own individual one. I spun up a new server with postgres11, and got that all going. However when i do a pg_dumpall (because i want the roles, etc maintained - i'll drop the databases i dont want after the restore), and then attempt to restore it to my new cluster, i get errors. Are these errors ignorable? Or am i restoring wrong??
As the postgres user:
-bash-4.2$ psql -f /mnt/temp_storage/dave/prod_cluster.dump postgres
Here are some snippets of the errors
Code:
psql:/mnt/temp_storage/dave/prod_cluster.dump:392418: invalid command \. psql:/mnt/temp_storage/dave/prod_cluster.dump:392425: ERROR: syntax error at or near "1" LINE 1: 1 1 clock integer t ^ psql:/mnt/temp_storage/dave/prod_cluster.dump:392757: invalid command \. psql:/mnt/temp_storage/dave/prod_cluster.dump:392764: ERROR: syntax error at or near "2490" LINE 1: 2490 2 1607990400 1608076800 ^ psql:/mnt/temp_storage/dave/prod_cluster.dump:392765: invalid command \N psql:/mnt/temp_storage/dave/prod_cluster.dump:392766: invalid command \N psql:/mnt/temp_storage/dave/prod_cluster.dump:392767: invalid command \N psql:/mnt/temp_storage/dave/prod_cluster.dump:392768: invalid command \N psql:/mnt/temp_storage/dave/prod_cluster.dump:392769: invalid command \N psql:/mnt/temp_storage/dave/prod_cluster.dump:393129: ERROR: syntax error at or near "2856" LINE 1: 2856 2510 constraint_2510 ^ psql:/mnt/temp_storage/dave/prod_cluster.dump:393792: invalid command \. psql:/mnt/temp_storage/dave/prod_cluster.dump:393799: ERROR: syntax error at or near "2856" LINE 1: 2856 _hyper_1_2856_chunk_history_1 1 history_1 ^ psql:/mnt/temp_storage/dave/prod_cluster.dump:393800: invalid command \. psql:/mnt/temp_storage/dave/prod_cluster.dump:393807: ERROR: column "job_type" of relation "bgw_job" does not exist psql:/mnt/temp_storage/dave/prod_cluster.dump:393808: invalid command \. psql:/mnt/temp_storage/dave/prod_cluster.dump:393815: ERROR: column "job_id" of relation "continuous_agg" does not exist psql:/mnt/temp_storage/dave/prod_cluster.dump:393816: invalid command \. psql:/mnt/temp_storage/dave/prod_cluster.dump:393823: ERROR: relation "_timescaledb_catalog.continuous_aggs_completed_th reshold" does not exist psql:/mnt/temp_storage/dave/prod_cluster.dump:393824: invalid command \. COPY 0 COPY 0 COPY 0 COPY 0 COPY 0 COPY 0 psql:/mnt/temp_storage/dave/prod_cluster.dump:393879: ERROR: relation "_timescaledb_config.bgw_policy_compress_chunk s" does not exist psql:/mnt/temp_storage/dave/prod_cluster.dump:393880: invalid command \. psql:/mnt/temp_storage/dave/prod_cluster.dump:393887: ERROR: relation "_timescaledb_config.bgw_policy_drop_chunks" does not exist psql:/mnt/temp_storage/dave/prod_cluster.dump:393888: invalid command \. psql:/mnt/temp_storage/dave/prod_cluster.dump:393895: ERROR: relation "_timescaledb_config.bgw_policy_reorder" does not exist psql:/mnt/temp_storage/dave/prod_cluster.dump:393896: invalid command \.
Comment