aws-psycopg2
aws-psycopg2 copied to clipboard
Postgress 15, arm64 problem
Hello,
aws-psycopg2 1.3.8 Postgress 15.4 python 3.9
I add the aws-psycopg2 package as a layer to Lambda.
This error occurs when I run the function as arm64. When I run it as x86_64, there is no problem.
{
"errorMessage": "SCRAM authentication requires libpq version 10 or above\n",
"errorType": "OperationalError",
"requestId": "69a1e821-1a33-4f71-b0dd-1ad9c35e5b43",
"stackTrace": [
" File \"/var/task/lambda_function.py\", line 33, in lambda_handler\n response = rds(event)\n",
" File \"/var/task/simple_tests.py\", line 76, in rds\n conn = psycopg2.connect(\n",
" File \"/opt/python/psycopg2/__init__.py\", line 122, in connect\n conn = _connect(dsn, connection_factory=connection_factory, **kwasync)\n"
]
}
There is no problem in Postgresql 12 and arm64. I want to upgrade the Postgress version used by my applications running on arm54 to 15.4. But I cannot solve this error.
For now, running it on x86_64 is a solution. But I want to use arm64 for performance.