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

Commit 96d107f

Browse files
committed
Fix possible memory corrupgion in indexes
1 parent 7748e24 commit 96d107f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/cache/relcache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5285,12 +5285,12 @@ write_relcache_init_file(bool shared)
52855285

52865286
/* next, write the vector of opfamily OIDs */
52875287
write_item(rel->rd_opfamily,
5288-
relform->relnatts * sizeof(Oid),
5288+
rel->rd_index->indnkeyatts * sizeof(Oid),
52895289
fp);
52905290

52915291
/* next, write the vector of opcintype OIDs */
52925292
write_item(rel->rd_opcintype,
5293-
relform->relnatts * sizeof(Oid),
5293+
rel->rd_index->indnkeyatts * sizeof(Oid),
52945294
fp);
52955295

52965296
/* next, write the vector of support procedure OIDs */

0 commit comments

Comments
 (0)