On Thu, Apr 15, 2021 at 2:30 PM
cortex...@gmail.com
<
cortex...@gmail.com> wrote:
>
> restored backup of the postgresql 13 via barman cli with defined "2021-04-15 10:00:00 CEST" as recovery target:
>
> Doing PITR. Recovery target time: '2021-04-15 10:00:00+02:00'
>
> barman generated postgresql.auto.conf:
>
> # Do not edit this file manually!
> # It will be overwritten by the ALTER SYSTEM command.
>
> restore_command = 'cp barman_wal/%f %p'
> recovery_end_command = 'rm -fr barman_wal'
> recovery_target_time = '2021-04-15 10:00:00 CEST'
>
> Fails with:
>
> 2021-04-15 10:31:35.405 CEST [4880] LOG: invalid value for parameter "recovery_target_time": "2021-04-15 10:00:00 CEST"
>
> The fix was setting recovery_target_time to:
>
> recovery_target_time = '2021-04-15 10:00:00 Europe/Prague' (or UTC+XX)
I'm just checking if I fully understand the situation here: did you
run barman recover with `--recovery-target-time "2021-04-15 10:00:00
CEST"`?
I think it might be reasonable for Barman to warn you to specify the
timezone as a numeric offset from UTC, rather than use an abbreviated
timezone name. I do not think it would be reasonable for Barman to
change the value, however.
Or have I misunderstood the problem?
-- Abhijit