MCPcopy Create free account
hub / github.com/documentdb/documentdb / SetGUCLocally

Function SetGUCLocally

pg_documentdb/src/utils/guc_utils.c:37–43  ·  view source on GitHub ↗

* SetGUCLocally sets given GUC to given value locally. That means, any * changes done by this function will be automatically rollbacked at the end * of the current transaction even if it commits. * * This is effectively same as doing the following within the current * transaction: * SET LOCAL my_guc TO new_value; * * To early rollback the changes done by this function (i.e.: before the

Source from the content-addressed store, hash-verified

35 *
36 */
37void
38SetGUCLocally(const char *name, const char *value)
39{
40 set_config_option(name, value,
41 (superuser() ? PGC_SUSET : PGC_USERSET), PGC_S_SESSION,
42 GUC_ACTION_LOCAL, true, 0, false);
43}

Calls

no outgoing calls

Tested by

no test coverage detected