p/pgsql: Detect "rc" postgresql versions.

 - Also accept versions ending in "rc\d+"
 - Thanks to Vincas Dargis for bringing it to our attention via the Debian BTS.

Closes: D#770826
Merge branch 'bts/770826-postgresql-plugin-fails-to-find-rc-version' into stable-2.0