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

Commite246cfc

Browse files
committed
Initialize cached OID to Invalid in new hash entries
Andres Freund; bug detected by valgrind
1 parent673b527 commite246cfc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/backend/utils/cache/relfilenodemap.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode)
180180
if (found)
181181
returnentry->relid;
182182

183+
/* initialize empty/negative cache entry before doing the actual lookup */
184+
entry->relid=InvalidOid;
185+
183186
/* ok, no previous cache entry, do it the hard way */
184187

185188
/* check shared tables */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp