forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfcdd668
committed
Harden xxx_is_visible() functions against concurrent object drops.
For the same reasons given in commit403ac22, adjust thesefunctions to not assume that checking SearchSysCacheExists canguarantee success of a later fetch.This follows the same internal API choices made in the earlier commit:add a function XXXExt(oid, is_missing) and use that to eliminatethe need for a separate existence check. The changes are verystraightforward, though tedious. For the moment I just made the newfunctions static in namespace.c, but we could export them if a needemerges.Per bug #18014 from Alexander Lakhin. Given the lack of hard evidencethat there's a bug in non-debug builds, I'm content to fix this onlyin HEAD.Discussion:https://postgr.es/m/18014-28c81cb79d44295d@postgresql.org1 parent403ac22 commitfcdd668
2 files changed
+343
-46
lines changed0 commit comments
Comments
(0)