ITPub博客

首页 > 数据库 > 数据库开发技术 > rhel7 pgloader使用

rhel7 pgloader使用

原创 数据库开发技术 作者:hgs19921112 时间:2018-04-12 13:59:56 0 删除 编辑
官网下载 pgloader-3.4.1-2.rhel7.x86_64.rpm,python-psycopg2  安装
这是shell 运行pgloader  出现 libssl.so被需要    ll | grep libssl.so.1.0.   查找  这个时候可能会出现两条查找结果,
我的是libssl.so.1.0.1e    新建软链接  ln -s  /lib64/ libssl.so.1.0.1e    /lib64/ libssl.so
这个时候在执行pgloader shell会直接结束命令,说明安装完成   pgloader --help可查看帮助信息

使用时例如
pgloader --type csv --field "id,name"  -D  /home/hgs    -L /home/hgs/test.log --with "fields terminated by \'\\t\'" --with "batch rows = 100000"   /home/hgs/test.bcp  postgresql://postgres:postgres@192.168.245.137:5432/postgres?tablename=test

详细参数可查看官网

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31506529/viewspace-2152850/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: mongo shell CURD
请登录后发表评论 登录
全部评论

注册时间:2017-11-22

  • 博文量
    106
  • 访问量
    186398