2014-06-05 103 views
0

我一直在試圖導入Postgresql轉儲與我的pgadmin3接口,但即時通訊運行到問題。與pg_dump dbname > dump_file.sqlPostgresql導入轉儲與pgadmin3

ERROR: syntax error at or near "\" 
LINE 1903: \. 
     ^
********** Error ********** 

ERROR: syntax error at or near "\" 
SQL state: 42601 
Character: 45693 

代碼生成的這些轉儲:

-- 
-- Data for Name: auth_group; Type: TABLE DATA; Schema: public; Owner: postgres 
-- 

COPY auth_group (id, name) FROM stdin; 
\. 

感謝

回答

2

的pgAdmin-III的SQL窗口遺憾的是不理解psql反斜槓命令,COPY ... FROM STDIN

你必須用psql恢復。

psql -f dump_file.sql 
+0

與'psql dbname psychok7