PG-Admin에서 Restore를 했습니다.
### pg_restore.exe -i -h localhost -p 5432 -U postgres -d
safedoor5 -v "C:\Documents and Settings\Administrator\바탕
화면\hanil.backup"
### 결과 ####
pg_restore: creating TABLE sellitem
pg_restore: [archiver (db)] Error from TOC entry 1295; 1259 17512
TABLE sellitem hicom
pg_restore: [archiver (db)] could not execute query: ERROR: user
"hicom" does not exist
Command was: ALTER TABLE public.sellitem OWNER TO hicom;
pg_restore: creating TABLE sellsum
pg_restore: [archiver (db)] Error from TOC entry 1287; 1259 17447
TABLE sellsum hicom
pg_restore: [archiver (db)] could not execute query: ERROR: user
"hicom" does not exist
Command was: ALTER TABLE public.sellsum OWNER TO hicom;
위와같은 에러가 납니다.
처음 백업한 데이터베이스는 A란 PC에서 hicom이란 사용자 권한으로
사용중인 데이터베이스였구요
복구하려는 데이터베이스는 B란 PC에서 새로운 환경으로 postgres의
권한으로 생성한
데이터베이스입니다. (생성시에는 Template0으로 빈 데이터베이스를
만들었구요.)
근데 위에처럼 에러가 나네요..
처음에 hicom이란 owner로 생성을 하여 사용하던 것이라 postgres
owner로 된 곳에 복구를
하려니 에러가 나는것 같은데...
앞으로 생성하는 db는 hicom이 아닌 postgres의 권한으로 생성하려
합니다.
어떻게 하면 위의 에러를 처리할수 있을까요?
만약에 무시할수 있는 에러라면 그냥 사용해도 무관한건지요....
이런 경험하신분 답변 주시면 감사하겠습니다^^
|