[postgres@localhost bin]$ ./psql -h localhost
psql (9.4.5)
Type "help" for help.
postgres=# select version();
version
-----------------------------------------------------------------------------------
PostgreSQL 9.4.5 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.9.3, 64-bit
(1 row)
原文:http://www.cnblogs.com/songyuejie/p/5166435.html