clarkgrubb / hyperpolyglot

hyperpolyglot.org
Other
473 stars 94 forks source link

code to get plpgsql/postgresql version is wrong #50

Closed jasen-b closed 8 years ago

jasen-b commented 8 years ago

on this page http://hyperpolyglot.org/pascal

code to get plpgsql/postgresql version is wrong

reason: psql --version only gives the client version, not the version that will be interpreting the code.

should be this query: SELECT version(); at the psql prompt.