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


총 게시물 73건, 최근 0 건
   

$PGDATADIR/base 초 간단히 파헤치기

글쓴이 : PostgresDBA 날짜 : 2013-06-22 (토) 16:34 조회 : 4612
$PGDATADIR/base 디렉토리를 살펴보면 아래와 같은 숫자들이 보입니다. 이게 뭘 의미하는 것일까요?

[postgres@pg-00:/var/lib/pgsql/9.2/data/base]$ ls -l
total 44
drwx------ 2 postgres postgres 12288 Dec 28 13:30 1/
drwx------ 2 postgres postgres  4096 Dec 28 13:29 12865/
drwx------ 2 postgres postgres  4096 Jun 22 15:22 12870/
drwx------ 2 postgres postgres 12288 Jun 22 15:12 16547/
drwx------ 2 postgres postgres 12288 Jan  4 14:10 16548/
[postgres@pg-00:/var/lib/pgsql/9.2/data/base]$ 
 
이제 뭔지 까봅시다. 

postgres@[local]:5432:postgres] 
SQL> select datname, oid from pg_database order by oid;
  datname  |  oid  
-----------+-------
 template1 |     1
 template0 | 12865
 postgres  | 12870
 scottdb   | 16547
 ds2       | 16548
(5 rows)

감이 오시나요?



   

postgresdba.com