Content-Length: 258890 | pFad | http://github.com/postgrespro/postgres_cluster/commit/e246cfc95f020b5fcb20a1fb946efe77113edf00

D5 Initialize cached OID to Invalid in new hash entries · postgrespro/postgres_cluster@e246cfc · GitHub
Skip to content

Commit e246cfc

Browse files
committed
Initialize cached OID to Invalid in new hash entries
Andres Freund; bug detected by valgrind
1 parent 673b527 commit e246cfc

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
return entry->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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/e246cfc95f020b5fcb20a1fb946efe77113edf00

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy