From c0c3c2027f9cd08d6f892b2cf5fa02f4651a4e08 Mon Sep 17 00:00:00 2001 From: nwen Date: Mon, 24 Oct 2022 15:07:58 +0800 Subject: [PATCH] fix: increase the maximum value of oid to avoid the bug of not being able to create hypo-index by too large oid --- src/gausskernel/dbmind/kernel/hypopg_index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gausskernel/dbmind/kernel/hypopg_index.cpp b/src/gausskernel/dbmind/kernel/hypopg_index.cpp index fd6e61971..04cb581f6 100644 --- a/src/gausskernel/dbmind/kernel/hypopg_index.cpp +++ b/src/gausskernel/dbmind/kernel/hypopg_index.cpp @@ -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 shouldn't be more than 9999999999 */ + char oid[16] = {0}; /* store , oid shouldn't be more than 99999999999999 */ int totalsize; errno_t rc = EOK;