原 从PG库导出然后导入到GP库需要做的更改
简介
从PG导出,导入GP,直接使用PG的客户端,导出后需要修改:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | pg_dump .... sed -i '/SET idle_in_transaction_session_timeout = 0;/d' at_d.dmp sed -i '/SET row_security = off;/d' at_d.dmp sed -i '/SET transaction_timeout = 0;/d' at_d.dump sed -i '/SET default_table_access_method = heap;/d' at_d.dump sed -i 's/COLLATE pg_catalog\."zh_CN"//g' at_d.dump sed -i 's/COLLATE pg_catalog\."zh_CN"//g' at_d.dump sed -i "s/WITH (parallel_workers='16')//g" at_d.dump psql.... |