Master host memory exhaustion while psql processes are failing with the following message:
failed to acquire resources on one or more segments
Elevated memory consumption by psql processes is generally a result of large resultset data fetching operation.
It is recommended to run psql / client application on a non-active host /machine to avoid exhausting master / segment cluster hosts.