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 6237 게시물 읽기
No. 6237
pg_restore 사용시 권한에러
작성자
김이수(isukim)
작성일
2005-07-29 00:01ⓒ
2005-07-29 01:03ⓜ
조회수
2,353

주기적으로 DB백업을 할 수 있게 프로그램 중인데

pg_restore명령어를 사용하면 계속 에러가 나는군요

C:\Program Files\PostgreSQL\8.0\bin>pg_restore -U iceman -Ft -d -v mydb mydb.back
pg_restore: [tar archiver] could not open TOC file for input: No such file or directory

C:\Program Files\PostgreSQL\8.0\bin>pg_restore -U iceman -Ft -d mydb -v mydb.back
pg_restore: connecting to database for restore
Password:
pg_restore: [archiver (db)] connection to database "mydb" failed: FATAL: passwo
rd authentication failed for user "iceman"
pg_restore: *** aborted because of error

이렇게 password에러가 납니다.

 

그런데...

C:\Program Files\PostgreSQL\8.0\bin>psql -U iceman mydb
Password:
Welcome to psql 8.0.3, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

mydb=>

psql은 접속이 잘되는군요...

물론 backup도 잘됐었습니다.

C:\Program Files\PostgreSQL\8.0\bin>pg_dump -U iceman -Fc -f mydb.back DDK1
Password:

 

이유가 뭘까요.

빨리 해결해야하는데 걱정입니다.

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

구글링을 해보니 같은 이유로 포스팅된 질문이 몇건 있네요.

버젼이 어떻게 되나요?

어떤 문서에는 8.1에서 그런 문제가 있다고 하는데 그 아래 버젼에서는 문제가 없다고 하고... 아직 어떻게 해결해야 한다는 내용은 보지 못했습니다.

다른 버젼을 한번 사용해 보도록 해보세요.

 

음... pgsql의 bug mailing list를 보니 같은 내용의 버그 리포트가 많네요. 그런데 아직 해결방법을 보지는 못했습니다. 버그이기는 한 것 같네요. 다 win32 버젼인 듯 합니다.

박성철(gyumee)님이 2005-07-31 09:03에 작성한 댓글입니다.
이 댓글은 2005-07-31 09:15에 마지막으로 수정되었습니다.
[Top]
No.
제목
작성자
작성일
조회
6240학사관리에서.. 대체과목 지정하는거 설계를 어떻게 해야하나요? [4]
박기원
2005-08-01
2028
6239숫자값을 콤마(,)를 넣어 표현하는 함수가 있나요? [1]
김창욱
2005-07-29
4344
6238insert into ()... select () form.... 이런식으로 넣을때 pk 문제 [1]
박기원
2005-07-29
2446
6237pg_restore 사용시 권한에러 [1]
김이수
2005-07-29
2353
6236(급질문)DB자료 복구문제 [4]
호랑이
2005-07-28
2450
6235PSQL 메모리 디비 사용하기 정보좀.. [1]
오지수
2005-07-28
2128
6234원격 접속... [2]
한상호
2005-07-28
2706
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.021초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다