/usr/local/pgsql/data is created but by the end of process it is removed
Your group name is currently "mkgroup_l_d". This indicates that not all domain users and groups are listed in the /etc/passwd and /etc/group files. See the man pages for mkpasswd and mkgroup then, for example, run
mkpasswd -l -d > /etc/passwd mkgroup -l -d > /etc/group
This message is only displayed once (unless you recreate /etc/group) and can be safely ignored.