> On Aug 2, 2018, at 1:33 PM, Jorge Torralba <jorge(dot)torralba(at)gmail(dot)com> wrote:
>
>
> ~/datas3/pg_xlog/RECOVERYXLOG $ ls -l
> total 16384
> -rw------- 1 postgres postgres 16777216 Aug 2 16:03 000000010000000000000002
>
>
I don’t think RECOVERYXLOG should be a directory; that should be the WAL file being restored. Postgres is trying to restore the directory instead of the file thus the error.