简体   繁体   English

在 pgSQL 上获取内部服务器错误

[英]Getting Internal Server Error on pgSQL

Im tryingto import data from windows CSV (comma delimiter) file into pgSQL faxtest1 table, but I keep getting error saying "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."我正在尝试将 Windows CSV(逗号分隔符)文件中的数据导入 pgSQL 传真测试 1 表,但我一直收到错误消息“服务器遇到内部错误,无法完成您的请求。服务器超载或存在错误应用。”

The following is my code:以下是我的代码:

COPY faxtest1 
   FROM 'C:‪\Users\David\Desktop\test3.csv' 
   WITH DELIMITER AS ',' CSV ;

The CSV file is like: CSV 文件如下:

Status,Fax ID
Fax to Email,2104
Fax to Email,2108

这是pg admin 4的一个错误,希望他们将来会修复它。

In version 14, in the Import/Export data function, there are 2 columns, "Options" and "Columns."在版本 14 中,在导入/导出数据功能中,有 2 列,“选项”和“列”。 Try manually select the columns one at time, separated by a comma.尝试一次手动选择一列,用逗号分隔。 See if this would by pass the error.看看这是否会绕过错误。

It worked for me.它对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM