Based on the workflow described by @tschundeee and @Debilski’s update 1, I automated the procedure and added cleanup in this script.
Download it, put it in your path and brewv
. For the specific OP, it would be:
cd path/to/downloaded/script/
./brewv postgresql 8.4.4
:)