Fix mistake in extensible node code.

I believe that I (rhaas) introduced this bug while editing the patch
that became bcac23de73.

Report and patch from KaiGai Kohei.
This commit is contained in:
Robert Haas 2016-03-01 13:17:09 -05:00
parent 7e137f846d
commit aec64e8f45
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ RegisterExtensibleNodeMethods(const ExtensibleNodeMethods *methods)
HASHCTL ctl;
memset(&ctl, 0, sizeof(HASHCTL));
ctl.keysize = NAMEDATALEN;
ctl.keysize = EXTNODENAME_MAX_LEN;
ctl.entrysize = sizeof(ExtensibleNodeEntry);
extensible_node_methods = hash_create("Extensible Node Methods",
100, &ctl, HASH_ELEM);