DESCRIBE POSTGRES INSTANCE

statementsupportedContainer services & dev tooling

docs.snowflake.com ↗

Object: POSTGRES INSTANCE

Describes the properties of a Snowflake Postgres instance. Use this command to: - Monitor the state of an instance during asynchronous operations like ALTER, CREATE, or FORK. - Retrieve connection details such as the hostname. - Check configuration settings like high availability status, Postgres version, and custom server settings. - View the origin field to identify forked instances and their source. DESCRIBE can be abbreviated to DESC.

Syntax

{ DESC | DESCRIBE } POSTGRES INSTANCE <name>

Parameters

NameRequiredDescription
nameSpecifies the identifier for the Postgres instance to describe. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive. For more information, see Identifier requirements.

Usage notes

Output

The output of the command includes the following columns, which describe the properties and metadata of the object: The command returns results in a property/value format rather than columnar output. Each property appears as a separate row with its corresponding value. Property | Description name | Name of the Postgres instance. owner | Role that owns the Postgres instance. owner_role_type | Type of the owner role (for example, ROLE or DATABASE_ROLE). created_on | Date and time when the Postgres instance was created. updated_on | Date and time when the Postgres instance was last updated. type | Type of the Postgres instance (for example, PRIMARY). host | Hostname used to connect to the Postgres instance. privatelink_service_identifier | Identifier for the Private Link service, if Private Link is configured for the instance. compute_family | Compute family (instance size) of the Postgres instance. storage_size_gb | Storage size allocated to the Postgres instance, in GB. postgres_version | Major version of Postgres running on the instance. postgres_settings | Custom Postgres server settings configured for the instance. high_availability | Whether high availability is enabled for the instance (true or false). authentication_authority | Authentication authority for the instance: POSTGRES, POSTGRES_OR_SNOWFLAKE, or EXTERNAL_OAUTH. See Configure authentication for Snowflake Postgres. authentication_properties | The stored External OAuth configuration. None when the authority isn’t External OAuth. See Configure authentication for Snowflake Postgres. maintenance_window_start | Hour of day (0-23, UTC) when a maintenance window can start, or None if not set. state | Current state of the instance. Possible values: CREATING, RESTORING, STARTING, REPLAYING, FINALIZING, READY, RESTARTING, RESUMING, SUSPENDING, SUSPENDED. comment | Comment for the Postgres instance, or None if not set. origin | Origin of the Postgres instance (for example, if forked from another instance), or None if not a fork. replicas | List of read replicas associated with the instance. operations | Pending or in-progress operations on the instance (for example, resize, upgrade, HA enablement). network_policy | Network policy attached to the instance, or None if not set. storage_integration | Storage integration used by the instance, or None if not set. certificate | SSL certificate for secure connections to the Postgres instance.

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes OPERATE or OWNERSHIP | Postgres instance | For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

See also

Referenced by