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

Commit aec64e8

Browse files
committed
Fix mistake in extensible node code.
I believe that I (rhaas) introduced this bug while editing the patch that became bcac23d. Report and patch from KaiGai Kohei.
1 parent 7e137f8 commit aec64e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/nodes/extensible.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ RegisterExtensibleNodeMethods(const ExtensibleNodeMethods *methods)
4545
HASHCTL ctl;
4646

4747
memset(&ctl, 0, sizeof(HASHCTL));
48-
ctl.keysize = NAMEDATALEN;
48+
ctl.keysize = EXTNODENAME_MAX_LEN;
4949
ctl.entrysize = sizeof(ExtensibleNodeEntry);
5050
extensible_node_methods = hash_create("Extensible Node Methods",
5151
100, &ctl, HASH_ELEM);

0 commit comments

Comments
 (0)