Thanks for the help - it turned out that 6.5 hadn't copied its binaries into the /usr/bin directory, and the binaries there were still 6.4.2. Resolving that solved everything.
pgsql-sql by date:
Соглашаюсь с условиями обработки персональных данных