Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96d107f

Browse files
committed
Fix possible memory corrupgion in indexes
1 parent7748e24 commit96d107f

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)

[8]ページ先頭

©2009-2025 Movatter.jp