Skip to content

Commit c037953

Browse files
Fix HTAB name setting in makePackHTAB()
1 parent 238c1ef commit c037953

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pg_variables.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,8 +1247,7 @@ static void
12471247
makePackHTAB(Package *package, bool is_trans)
12481248
{
12491249
HASHCTL ctl;
1250-
char key[NAMEDATALEN],
1251-
hash_name[BUFSIZ];
1250+
char hash_name[BUFSIZ];
12521251

12531252
if (is_trans)
12541253
package->hctxTransact = AllocSetContextCreate(ModuleContext,
@@ -1260,7 +1259,7 @@ makePackHTAB(Package *package, bool is_trans)
12601259
ALLOCSET_DEFAULT_SIZES);
12611260

12621261
snprintf(hash_name, BUFSIZ, "%s variables hash for package \"%s\"",
1263-
is_trans ? "Transactional" : "Regular", key);
1262+
is_trans ? "Transactional" : "Regular", package->transObject.name);
12641263
ctl.keysize = NAMEDATALEN;
12651264
ctl.entrysize = sizeof(Variable);
12661265
ctl.hcxt = (is_trans ? package->hctxTransact : package->hctxRegular);

0 commit comments

Comments
 (0)