1 回答
- 最新
- 投票最多
- 评论最多
0
【以下的回答经过翻译处理】 我已经找到问题了!我们正在使用 aws python lambda docker image。我必须从源代码编译pg工具。在这个容器上安装的yum可安装的pg工具仅安装了9主要版本的工具,不兼容带有scram密码加密的样式。
运行yum install -y wget gcc tar make libpqxx-devel gzip && \
yum install -y https://download.postgresql.org/pub/repos/yum/14/redhat/rhel-7-x86_64/postgresql14-libs-14.5-1PGDG.rhel7.x86_64.rpm && \
wget https://ftp.postgresql.org/pub/source/v14.5/postgresql-14.5.tar.gz && \
tar -xf postgresql-14.5.tar.gz && \
cd postgresql-14.5 && \
./configure --with-python --without-readline --without-zlib && \
make && \
make install && \
export PATH="/usr/local/pgsql/bin:$PATH" && \
python3 -m pip install --upgrade pip setuptools wheel boto3 pygresql
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前