PostgreSQL connection error while Slack import

What version of Mattermost are you on? We still see people on 5.x or 7.x, and the tooling around this sort of functionality has steadily improved.