설문조사
PostgreSQL/PPAS 관련 듣고 싶은 교육은


총 게시물 73건, 최근 0 건
   

버전 정보를 알아내는 3가지 방법

글쓴이 : PostgresDBA 날짜 : 2013-06-22 (토) 15:50 조회 : 19423
첫번째
SQL> select version();
                                                version                                                
-------------------------------------------------------------------------------------------------------
 PostgreSQL 9.2.2 on i686-pc-linux-gnu, compiled by gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4), 32-bit
(1 row)

scott@10.10.10.22:5432:scottdb] 
SQL> 

두번째
$PGDATADIRECTORY 디렉토리안에는 PG_VERSION 화일이 있습니다.

[postgres@pg-00:/var/lib/pgsql/9.2/data]$ ls -l PG_VERSION 
-rw------- 1 postgres postgres 4 Dec 28 13:29 PG_VERSION
[postgres@pg-00:/var/lib/pgsql/9.2/data]$ cat PG_VERSION 
9.2
[postgres@pg-00:/var/lib/pgsql/9.2/data]$ 

세번째
이는 정확히 말하면 db server 의 버전이라기 보다는 client software 의 버전 정보라 하는게 정확하겠죠.
[postgres@pg-00:/var/lib/pgsql]$ psql --version
psql (PostgreSQL) 9.2.2
[postgres@pg-00:/var/lib/pgsql]$ 

   

postgresdba.com