Fer*_*sar 4 database postgresql timezone database-restore
我正在导入一个使用psql(PostgreSQL)9.5.10的数据库.对于我的本地数据库v.9.6.5.
这是有问题的部分:
COPY timezone (id, name, windowsname, tzindex) FROM stdin;
...
315 Canada/East-Saskatchewan \N \N
...
Run Code Online (Sandbox Code Playgroud)
这是我得到的错误:
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 9024; 0 48454 TABLE DATA timezone skysms
pg_restore: [archiver (db)] COPY failed for table "timezone": ERROR: invalid value for parameter "TimeZone": "Canada/East-Saskatchewan"
CONTEXT: SQL statement "SET local timezone to 'Canada/East-Saskatchewan'"
PL/pgSQL function display_in_other_tz(timestamp with time zone,text,text) line 7 at EXECUTE statement
COPY timezone, line 315: "315 Canada/East-Saskatchewan \N \N"