forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit490f869
committed
Create syscache entries for pg_extension
Two syscache identifiers are added for extension names and OIDs.Shared libraries of extensions might want to invalidate or update theirown caches whenever a CREATE, ALTER or DROP EXTENSION command is run fortheir extension (in any backend). Right now this is non-trivial to docorrectly and efficiently, but, if an extension catalog is part of asyscache, this could simply be done by registering an callback usingCacheRegisterSyscacheCallback for the relevant syscache.Another case where this is useful is a loaded library where some of itscode paths rely on some objects of the extension to exist; it can besimpler and more efficient to do an existence check directly on theextension through the syscache.Author: Jelte Fennema-NioReviewed-by: Alexander Korotkov, Pavel StehuleDiscussion:https://postgr.es/m/CAGECzQTWm9sex719Hptbq4j56hBGUti7J9OWjeMobQ1ccRok9w@mail.gmail.com1 parenta839567 commit490f869
1 file changed
+3
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 |
|
0 commit comments
Comments
(0)