* CreateParentRolesHashSet creates a hash set for storing parent role names. */
| 1782 | * CreateParentRolesHashSet creates a hash set for storing parent role names. |
| 1783 | */ |
| 1784 | static HTAB * |
| 1785 | CreateParentRolesHashSet(void) |
| 1786 | { |
| 1787 | HASHCTL hashCtl; |
| 1788 | memset(&hashCtl, 0, sizeof(hashCtl)); |
| 1789 | hashCtl.keysize = NAMEDATALEN; |
| 1790 | hashCtl.entrysize = NAMEDATALEN; /* Key-only hash set */ |
| 1791 | hashCtl.hcxt = CurrentMemoryContext; |
| 1792 | |
| 1793 | return hash_create("ParentRolesSet", 16, &hashCtl, |
| 1794 | HASH_ELEM | HASH_STRINGS | HASH_CONTEXT); |
| 1795 | } |
| 1796 | |
| 1797 | |
| 1798 | /* |