fix: increase the maximum value of oid to avoid the bug of not being able to create hypo-index by too large oid

This commit is contained in:
nwen
2022-10-24 15:07:58 +08:00
parent a31f86e583
commit c0c3c2027f

View File

@ -1285,7 +1285,7 @@ Datum hypopg_reset_index(PG_FUNCTION_ARGS)
*/
static void hypo_set_indexname(hypoIndex *entry, const char *indexname)
{
char oid[12] = {0}; /* store <oid>, oid shouldn't be more than 9999999999 */
char oid[16] = {0}; /* store <oid>, oid shouldn't be more than 99999999999999 */
int totalsize;
errno_t rc = EOK;