papapep <papapep(at)gmx(dot)net> writes:
> I forgot to tell you that the DATABASE.out file is a read only file. I
> don-t know if its important, but....
You mean you're doing
pg_dump ... >DATABASE.out
where DATABASE.out already exists and is marked read-only? No wonder
it's failing. Read-only status wouldn't be much protection if it didn't
fail, no?
Remove the old file, or chmod it to let you overwrite it.
regards, tom lane