* 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
| 35 | * |
| 36 | */ |
| 37 | void |
| 38 | SetGUCLocally(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 | } |
no outgoing calls
no test coverage detected