Hi Tanja,
> On 01. Jun, 2020, at 09:04, Tanja Savic <tanja(dot)savic(at)crossmasters(dot)com> export PGDATA=" /var/lib/postgresql/12/main"
my wild guess is that the blank should not be there.
Cheers,Paul