2. DBMS이야기/01. PostgreSQL 89

[PostgreSQL] postgresql.conf 파라미터 설정(8.0)

postgresql.conf 파라미터 설정 · FILE LOCATIONS : 시스템과 직접 연관된 파일들에 대한 설정 data_directory = 'ConfigDir' PostgreSQL의 DB Data 폴더 설정입니다. PostgreSQL 는 기본적으로 접근자 Shell의 환경 변수중 PGDATA에 대해서 로딩하게 됩니다. hba_file = 'ConfigDir/pg_hba.conf' PostgreSQL의 접근제어 파일 ident_file = 'ConfigDir/pg_ident.conf' PostgreSQL의 Ident Authentication Maps 파일 external_pid_file = '(none)' PostgreSQL의 Process ID파일위치인데 기본적으로 PGDATA 또는 data_..

PostgreSQL/ PPAS Char Type 바인드 변수 사용에 따른 상용제품 기능 비교

Char Type의 컬럼에 바인드 변수에 따른 형변환 비교 ==============================create table zz_test001( a char(10)); insert into zz_test001 values ('12345'); prepare v(char) as select * from zz_test001 where a=$1; execute v('12345'); -- 결과값 조회됨 execute v('12345 '); -- 결과값 조회됨 ==> 해당 결과는 동일하다. ======================================== create table zz_test001( a char(10)); insert into zz_test001 values ('12345'); ..

[PostgreSQL] Configuration 기본튜닝

-- 해당 내용은 postgresql.conf 파일에 환경설정을 해야 적용이 된다. 1. 공유 버퍼( shared_buffers ) 조정 RDBMS에서 가장 기본인 Shared Buffer 값 조정 PostgreSQL 도 여느 RDBMS와 마찬가지로 데이터베이스에 엑세스를 시도하면, 먼저 디스크에서 필요한 데이터를 공유 버퍼로 먼저 읽어 들인다. 그리고, 공유 버퍼에서 데이터를 읽고, 쓰기를 처리한다. 이후, 동일한 데이터 엑세스에 대해서는 공유버퍼에서 읽어 들여, 느린 디스크 엑세스를 줄여 성능을 확보 할 수 있는 기본적인 튜닝이다. 기본적인 디스크 캐싱이라 보면 적절 공유 버퍼의 크기는 기본 32M 이지만, 대략 서버 메모리 기준으로 1/4 ~ 1/2 정도로 할당한다. 2. 트랜잭션 로그 버퍼 ( w..

Postgres SQL과 Oracle의 Engine 비교

Postgres SQL과 Oracle의 Engine 비교 Name Oracle PostgreSQL Description 넓게 쓰이는 RDBMS RDBMS - Postgres에 기본을 둠 DB-Engines Ranking Rank 1 Rank 4 Score 1452.13 Score 257.36 Website www.oracle.com/­us/­products/­database www.postgresql.org Technical documentation www.oracle.com/­technetwork/­indexes/­documentation/­index.html www.postgresql.org/­docs/­manuals Developer Oracle PostgreSQL Global Development..

PostgreSQL vs MySQL 비교

안녕하세요~ 오늘은 Open Source의 양대 산맥(?)인 PostgreSQL vs MySQL의 주요 기능에 대해 한 눈에 비교해보겠습니다. PostgreSQL MySQL Website www.​postgresql.​org www.​mysql.​com License PostgreSQL Licence GPL Proprietary Design Database model Object-Relational Database Management System Relational database system Data storage File System File System Volatile memory Embeddable No Yes Features Query language SQL SQL Unicode Yes Yes ..

PostgreSQL Privileges Test 1

TEST 1 : GRANT• 테이블에 SELECT 권한 부여시, 테이블 조회가 가능한가? 첫번째 시나리오는 grant 구문을 테스트하는 시나리오입니다. - Create Schemaedb=# create schema newyork; CREATE SCHEMA - Create Tableedb=# create table newyork.test_02(col1 number(1), col2 number(2));CREATE TABLEedb=# \dp newyork.test_02 Schema Name Type Access privileges Access privileges Column access privileges newyork test_02 table enterprisedb=arwdDxt/enterprisedb co..

PHP에서 PostgreSQL 사용하기

PHP에서 PostgreSQL 사용하기 PHP pgsql 사용하기 확인 php.ini 위치 확인 [root@jmnote ~]# php -i | grep php.ini Configuration File (php.ini) Path => /etc/php.ini → php.ini는 /etc에 있다. extension 폴더 확인 먼저 extension이 설치될 위치를 확인한다. [root@jmnote ~]# php -r "phpinfo();" | grep ^extension extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules → 각종 extension들은 /usr/lib64/php/modules에 설치되어 있다. so 파일 확인 해당 폴더에 pdo..