python - 服务器断开连接错误:python 与 postgresql
问题描述
我正在尝试从 dask python 在 postgresql 中上传一些繁重的数据,但它给出了以下错误:服务器已断开连接。谁能帮我?
代码:
base_SP.to_sql('SIPNI_SP2', 'postgresql://postgres:postgres@localhost:5432/vacinacao',if_exists='replace', index = False, chunksize=1000, dtype = sqlalchemy.VARCHAR , method='multi',计算=真,并行=假)
解决方案
推荐阅读
- python - 对称地添加数组的左右部分 - python
- odata - 打破常规关联的 Odata
- javascript - HelloWorld vert.x 未启动
- angular - 如何使用 JSON 数据显示子类别列表
- amazon-web-services - SSM PingStatus 值是什么意思?
- spring-boot - 尝试使用 docker 映像在本地将 springboot WAR 部署到 Wildfly 时出现 Not Found 404 错误
- java - 如何获得最多两个 ZonedDateTime 实例?
- python - 将两个列表与内部嵌套列表相交
- wpf - 键盘快捷键不移动 .NET Core 3.0 项目中的 WPF 控件
- angular - NgRX 8 效果 - createEffect() 不工作 - 类型'Observable
' 不可分配给类型 'Observable