database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
ㆍPostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
PostgreSQL Q&A 8643 게시물 읽기
No. 8643
Table Dump 관련 문의 드립니다.
작성자
박병훈(bhhiphop)
작성일
2010-03-26 10:49ⓒ
2010-03-26 10:54ⓜ
조회수
7,687

제가 사용하는 프로그램의 DB 구조는 다음과 같이 되어 있습니다.

-bash-3.1$ psql -l
            List of databases
     Name     |    Owner     | Encoding
--------------+--------------+-----------
 psql_basic    | bds-protexip | SQL_ASCII
 psql_custom | bds-protexip | SQL_ASCII
  psql_redhat     | bds-protexip | SQL_ASCII
 psql_fedora  | bds-protexip | SQL_ASCII

 

-bash-3.1$ psql psql_custom
Welcome to psql 8.2.7, the PostgreSQL interactive terminal.



psql_custom=# \dt
                          List of relations

--------+----------------------------------------+-------+-----------
 public | brand                                  | table | psql
 public | custom_algorithm_aliases               | table | psql
 public | custom_algorithm_types                 | table | psql
 public | custom_algorithms                      | table | psql
 public | custom_filecontent                     | table | psql
 public | custom_project                         | table | psql

 

psql_custom=# \select * from public.custom_project;

                        |            |                 |                  |             |          | 456_proprietary |             0 |
 1000001005 | c_celerntv                 | celern tv                  | bdsformat_version_number=2.3.0&projectLog=On+20100311T081339Z++by+briankim%40bdsk.co.

                        |            |                 |                  |             |          | 123_proprietary |             0 |
 1000001006 | c_t-81111                  | T-8 1111                   | bdsformat_version_number=2.3.0&projectLog=On+20100312T011335Z++by+yhkim%40blackduckso
 

custom_project에 모든 프로젝트이 내제 되어 있으며 c_celerntv, c_t-81111는 그중 일부입니다.

제가 문의 드리고 싶은것은 custom_project 테이블이 아닌 모라고 해야 할지 모르겠지만 각 row(?)에 저장되어 있는 c_celerntv, c_t-81111의 data(즉, 몇개 프로젝트)를 Dump 받은 후, 나중에 아무런 삭제 없이 운영중인 db에 다시 Dump받은 프로젝트들을 custom_project 에 추가(restore)할 수 있는 방법이 있을까요?

추가로. 다음 명령어를 찾았는데요.. 다음은 custom_project 테이블 Data  전부를 dump 하는 방법 이겠죠?

# pg_dump pgsqldb -t tb_test > PGSQL_tb_test_20090830.dump

감사합니다.

 

 

 

 

 

 

이 글에 대한 댓글이 총 1건 있습니다.

pg_dump, pg_restore 사용 설명서를 참조하세요.

김상기(ioseph)님이 2010-03-30 01:40에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
8646포스트 그래스에서 rank() over () [1]
질문자
2010-04-01
8858
8645서비스 시작이 안됩니다.
식사마
2010-03-31
20667
8644Tungsten 써 보신 분?
김병길
2010-03-29
11793
8643Table Dump 관련 문의 드립니다. [1]
박병훈
2010-03-26
7687
8642이런경우 복구가 불가능한가요? [1]
초보
2010-03-25
7720
8639pg_dump -Z 로 백업한 내용을 어떻게 복구하나요? [1]
초보
2010-03-19
8296
8631로컬에서는 잘 되는데 외부에서 접근이 안됩니다. pg_hba설정 좀 도와주세요. [1]
하루
2010-03-11
9923
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.019초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다