Last active
August 29, 2015 14:20
-
-
Save knmkr/78bd221c2c5e20673c0d to your computer and use it in GitHub Desktop.
Check if PostgreSQL version > 9.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ psql $dbname $username --tuples-only -c "SELECT substring(version() from 'PostgreSQL (\d\.\d)')::float >= 9.3"| tr -d ' ' | |
t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SHOW server_version_num
を使った方が良さそう: