Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 29ce7df

Browse files
committed
Add quotes to memory units in GUCs
1 parent 3001283 commit 29ce7df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

multimaster.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3801,7 +3801,7 @@ static char * MtmGucSerialize(void)
38013801
appendStringInfoString(serialized_gucs, " TO ");
38023802

38033803
/* quite a crutch */
3804-
if (strcmp(cur_entry->key, "work_mem") == 0)
3804+
if (strstr(cur_entry->key, "_mem") != NULL)
38053805
{
38063806
appendStringInfoString(serialized_gucs, "'");
38073807
appendStringInfoString(serialized_gucs, cur_entry->value);
@@ -3939,6 +3939,7 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
39393939
break;
39403940

39413941
case T_CreateDomainStmt:
3942+
/* Detect temp tables access */
39423943
{
39433944
CreateDomainStmt *stmt = (CreateDomainStmt *) parsetree;
39443945
HeapTuple typeTup;

0 commit comments

Comments
 (0)