Use the gpstop utility to stop or restart your Greenplum Database system. This utility stops all of the postgres processes in the system (the master and all of the segment instances). gpstop is always run on the master host.
Each instance is stopped in parallel (up to 60 parallel processes by default). By default the system will wait for any active transactions to finish before shutting down, and will not shutdown if the database has any active client connections.
To stop Greenplum Database
To stop Greenplum Database in fast mode
(all active transactions are interrupted and rolled back, all active client sessions are cancelled)
$ gpstop -M fast