fix: skip recorder and sqlite state creation when vchord extension is not created#446
fix: skip recorder and sqlite state creation when vchord extension is not created#446Ngalstyan4 wants to merge 1 commit intotensorchord:mainfrom
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I think there is a bigger issue here as well. Is if so, per postgres guidance1, the files have to exist under
There are special rules around file naming as well. I ran into one issue with save/restore and I suspect many tools will have issue with current directory structure used in VectorChord. |
… 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) Signed-off-by: Narek Galstyan <narekg@berkeley.edu>
8a9275e to
0a0ddae
Compare
Yes, it's problematic. We recommend not using this feature, as it may lead to issues. #448 should stop the file or directory creation if the feature is not used. We hope this issue can be resolved in this way. |
|
Hi @Ngalstyan4 , the folder under |
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)