Yes, it was using an incorrect libpq version which comes with Pipelinedb (See the attached screenshot). I have uninstalled Pipelinedb since I'm not using that anymore. The issue is fixed now.
> st 19. 12. 2018 v 12:33 odesílatel Srimal | PickMe <srimal@pickme.lk> > napsal: > > maybe there are broken dependency between releases, or some other
I bet there is another libpq that is being picked up. PQsetErrorContextVisibility was added in 9.6. Maybe ldd /usr/lib/postgresql/11/bin/psql would give a clue.