Low: pgsql: add a function to retrying command
Low: pgsql: change name and specification of exec_func_with_timeout

- change function name from exe_func_with_timeout to exe_with_timeout
- change specification of exe_with_timeout to conform it to exec_with_retry
- exe_with_timeout outputs more logs
- increase in performance
Low: pgsql: Share output of crm_mon. If crm_mon fails, RA re-exec it
Low: pgsql: improve error handling of crm_xxxx commands

retry executing crm_xxxx commands if they fail
because the number of IPC connections reaches maximum,
crm_xxxx commands fail.