Files
doc-exports/docs/opengauss/umn/opengauss_tips_0015.html
Ru, Li Yi 0b0c254b4c gaussdb_umn_1128
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
2025-01-13 14:51:57 +00:00

1.4 KiB

GUC Parameter Programming Guidelines

Clients (such as JDBC) should use default (global) parameters for queries and cannot use session-level GUC parameters.

When you change GUC parameters through ODBC or JDBC, the GUC parameters take effect only in the current connection. Especially in the connection pool scenario, problems may occur and are difficult to be located.

If the GUC parameters must be configured in a connection, you must execute the following statements before releasing the connection to the connection pool:

SET SESSION AUTHORIZATION DEFAULT;

RESET ALL;

You need to clear the connection status.