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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy