Ubuntu Update for postgresql-9.4 USN-2499-1

Summary
Check the version of postgresql-9.4
Solution
Please Install the Updated Packages.
Insight
Stephen Frost discovered that PostgreSQL incorrectly displayed certain values in error messages. An authenticated user could gain access to seeing certain values, contrary to expected permissions. (CVE-2014-8161) Andres Freund, Peter Geoghegan and Noah Misch discovered that PostgreSQL incorrectly handled buffers in to_char functions. An authenticated attacker could possibly use this issue to cause PostgreSQL to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2015-0241) It was discovered that PostgreSQL incorrectly handled memory in the pgcrypto extension. An authenticated attacker could possibly use this issue to cause PostgreSQL to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2015-0243) Emil Lenngren discovered that PostgreSQL incorrectly handled extended protocol message reading. An authenticated attacker could possibly use this issue to cause PostgreSQL to crash, resulting in a denial of service, or possibly inject query messages. (CVE-2015-0244)
Affected
postgresql-9.4 on Ubuntu 14.10 , Ubuntu 14.04 LTS , Ubuntu 12.04 LTS , Ubuntu 10.04 LTS
Detection
Get the installed version with the help of detect NVT and check if the version is vulnerable or not.