首页 > 解决方案 > 服务器断开连接错误: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',计算=真,并行=假)

标签: pythonpostgresqldask-to-sql

解决方案


推荐阅读