Outdated This document is no longer maintained. Refer to the latest version.

SHUTDOWN

Function

SHUTDOWN shuts down the currently connected database node.

Precautions

Only the administrator can run this command.

Syntax

SHUTDOWN 
  { 
          | 
    fast  | 
    immediate
  };

Parameter Description

  • ""

    If the shutdown mode is not specified, the default mode fast is used.

  • fast

    Rolls back all active transactions, forcibly disconnects the client, and shuts down the database node without waiting for the client to disconnect.

  • immediate

    Shuts down the server forcibly. Fault recovery will occur on the next startup.

Examples

-- Shut down the current database node.
openGauss=# SHUTDOWN;

-- Shut down the current database node in fast mode.
openGauss=# SHUTDOWN FAST;
Feedback
    openGauss 2026-11-24 21:01:26
    cancel