9

Is there a way to know what version of pgrouting I have?

My OS is ubuntu 12.04.

I want to know my pgrouting version because the 1.05 version has some issues with shooting start and the directed graphs and the last stable version which has this algorithm is 1.03.

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
José Alejandro
  • 591
  • 1
  • 4
  • 11

2 Answers2

22

Another option would be select * from pgr_version()

  • 2
    This is a much better option, as it works on any OS. Worth mentioning that pgr_version is a function with hard-coded values, that also returns git versions. – John Powell Jul 04 '16 at 07:52
2

If you installed it through Ubuntu's package manager, then you could try firing up your terminal and typing

apt-show-versions postgresql-9.1-pgrouting

That should return the version. You might have to install apt-show-versions

apt-get install apt-show-versions
PolyGeo
  • 65,136
  • 29
  • 109
  • 338
R.K.
  • 17,405
  • 3
  • 59
  • 110