I run the command pg_dumpall > asd.out

Further they ask to enter the password, but it is from the windows user, but not postgres.

Can I perform a dump knowing the postgres user?

    1 answer 1

    Found. You must enter --username=postgres and then the password several times.

     pg_dumpall > asd.out --username=postgres 
    • Usually, keys are written before the results are redirected to a file, I wonder how it manages to work with you after ... - Mike