Commit 8a9275e
committed
fix: skip recorder and sqlite state creation when vchord extension is not created
When vchord is added to shared_preload_libraries without running
CREATE EXTENSION, the object_access_hook fires on any DROP TABLE
or DROP DATABASE and calls the recorder's get() function, which
lazily creates the pgsql_tmp_vchord_sampling/ directory and SQLite
files under PGDATA.
This is unnecessary and confusing when looking at contents of PGDATA
and seeing files from an extension that has never been enabled
The commit skips all recorder operations when the extension has never
been created (extension does not have an assigned OID)1 parent ff5dbda commit 8a9275e
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| |||
0 commit comments