Can you explain your solution a bit better pls? I have the same problem like you had, but can't fix it.

I'm getting this error:

sudo su postgres
dropbdb metasploit
could not change the...