Help Center/ AI DataLake/ Aura reference/ GUC Parameters/ Viewing and Setting GUC Parameters
Updated on 2026-11-06 GMT+08:00

Viewing and Setting GUC Parameters

To ensure the optimal performance of Aura, you can adjust the GUC parameters in the database.

The database offers numerous operation parameters. Configuring these can impact the behavior of the database system. When modifying these settings, make sure you comprehend their impact on the database to avoid unforeseen results.

Precautions

  • If the value range of a parameter is a string, the string should follow the OS's rules for path and file name naming conventions.
  • For parameters with a maximum value of INT_MAX, the maximum value varies depending on the OS.
  • For parameters with a maximum value of DBL_MAX, the maximum value varies depending on the OS.

Parameter Types and Values

  • All parameter names are case-insensitive. Parameter values can be integer, float, string, boolean, or enum types.

    Boolean values can be (on/off), (true/false), (yes/no) or (1/0), and are not case-sensitive.

    Strings are classified into regular strings and JSON strings:

    Regular string: The GUC value is a string.

    JSON string: The GUC value is a JSON string that contains multiple key-value pairs. Each key represents a parameter, and the corresponding value represents the parameter value.

  • For parameters with units, always specify the unit when setting them. Otherwise, default units will apply.
    • Memory units include: KB, MB, and GB.
    • Time units: ms, s, min, h, and d.

Viewing and Setting GUC Parameters

In Aura, you can set GUC parameters only by running the SET command via SQL statements. The syntax is as follows:

1
SET paramName TO paramValue;

For example, to set the statement_timeout parameter, you can use the REST API to send SET statement_timeout TO 60000, thereby setting it to 10 minutes.

To check the current settings of GUC parameters within a session, use the SHOW statement like so:

SHOW statement_timeout;

This allows you to query the currently configured statement timeout duration.