postgres-xl 安装与部署 【异常处理】ERROR: could not open file (null)/STDIN_***_0 for write, No such file or directory

https://www.jianshu.com/p/82aaf352b772 

这篇文章很不错,里面有个bug,可能是版本不对。

当前(2018-04-11)通过git 下载原代码时,在配置  pgxc_ctl.conf  文件时,需增加

tmpDir=/tmp # temporary dir used in XC servers
localTmpDir=$tmpDir # temporary dir used here locally

不然在启动时,会报  “ERROR: could not open file (null)/STDIN_4705_0 for write, No such file or directory”   错误

pgxcUser=$pgxcOwner

# 在 pgxcOwner=postgres 之后加

集群启动后,不要在gtm 节点,运行psql -p 5432  ,而是在另外两个(datanode)节点上跑 “psql -p 5432 ”

原文地址:https://www.cnblogs.com/jackicalSong/p/8798172.html