본문 바로가기

PostgreSQL

PostgreSQL Point-in-time Recovery (Incremental Backup) PostgreSQL “Point-in-time Recovery” (PITR) also called as incremental database backup , online backup or may be archive backup. The PostgreSQL server records all users’ data modification transaction like insert, update or delete and write it into a file call write-ahead (WAL) log file. This mechanism use the history records stored in WAL file to do roll-forward changes made since last database f.. 더보기
COPY 관련 설명 COPY 관련 설명 SynopsisCOPY tablename [ ( column [, ...] ) ] FROM { 'filename' | STDIN } [ [ WITH ] [ BINARY ] [ OIDS ] [ DELIMITER [ AS ] 'delimiter' ] [ NULL [ AS ] 'null string' ] [ CSV [ HEADER ] [ QUOTE [ AS ] 'quote' ] [ ESCAPE [ AS ] 'escape' ] [ FORCE NOT NULL column [, ...] ] http://www.postgresql.org/docs/8.1/static/sql-copy.html 위 문법은 copy 문법이며, 혹 더 많은 데이터를 삽입하기 위해 더 많은 옵션을 통하여 정확한 데이터를 넣.. 더보기
pg_dump PG_DUMP I. 서론 PG_DUMP은 다음과 같은 메뉴얼을 참조하여 백업 및 복구할 때 유용하게 사용할 수 있는 메뉴얼이다. II. 본론 다음은 PG_DUMP에 있는 내용을 다음과 같이 요약을 하고자 한다. PG_DUMP postgres@Dev:~> pg_dump --help pg_dump dumps a database as a text file or to other formats. Usage: pg_dump [OPTION]... [DBNAME] General options: -f, --file=FILENAME output file name -F, --format=c|t|p output file format (custom, tar, plain text) -i, --ignore-version proce.. 더보기