Wishing you all a Happy and Prosperous New Year!
I am getting below error while restoring postgres database to a specific target time (PITR):
Invalid value for parameter recovery_target_time in file postgresql.conf
And database is not getting restored. I have tried following values for recovery_target_time
:
recovery_target_time = '2022-12-31 12:45:00 UTC'
recovery_target_time = '2022-12-31 12:45:00 UTC+00'
recovery_target_time = '2022-12-31 12:45:00 UTC+00:00'
recovery_target_time = '2022-12-31 12:45:00 Etc/UTC'
recovery_target_time = '2022-12-31 12:45:00.000'
But none of the above is working.
What value should be used for recovery_target_time
?.
I am using postgresql 14 on Ubuntu 22.04 and trying restore database using pg_basebackup
. Timezone is in UTC. Let me know if I need to add more details.
Update: Provided logs
2022-12-30 13:32:19.686 UTC [34563] LOG: invalid value for parameter "recovery_target_time": "2022–12–30 12:45:00 UTC+00:00"