Skip to content

Commit

Permalink
fix parameters restoration
Browse files Browse the repository at this point in the history
  • Loading branch information
yhuelf committed Jun 29, 2023
1 parent 9bc31c8 commit 4ab1aab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pg_query_settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ execPlantuner(Query *parse, const char *query_st, int cursorOptions, ParamListIn
guc_value = pstrdup(TextDatumGetCString(data));

param = malloc(sizeof(parameter));
param->name = guc_name;
param->name = strdup(guc_name);

/* Get and store current value for the parameter. */
param->oldValue = GetConfigOption(guc_name, true, false);
param->oldValue = strdup(GetConfigOption(guc_name, true, false));

slist_push_head(&paramResetList, &param->node);

Expand Down

0 comments on commit 4ab1aab

Please sign in to comment.