安装大概步骤如下:
echo "export PATH=$PATH:/usr/pgsql-11/bin/" >>/etc/profile
source /etc/profile
github.com上有对应的版本,可以自行下载
download unzip
把hiredis放在redis_fdw里面,先安装hiredis,prefix也是对应的目录,安装的时候可以看到过程有文件复制到别的目录
cd /root/tools/redis_fdw-REL_11_STABLE/hiredis/
make
make prefix=/root/tools/redis_fdw-REL_11_STABLE/hiredis/ install
cd ..
echo "/usr/local/lib" >>/etc/ld.so.conf.d/hiredis.conf
ldconfig
make USE_PGXS=1
make USE_PGXS=1 install
安装完成
psql
创建extension:
create extension redis_fdw;
参考文档:
https://github.com/redis/hiredis
https://github.com/pg-redis-fdw/redis_fdw/tree/REL_11_STABLE
https://yq.aliyun.com/articles/9035
https://blog.csdn.net/qq_36934544/article/details/82854762
原文链接:PostgreSQL redis插件redis_fdw安装,转载请注明来源!