Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite temp files not getting cleaned up #7

Open
cinnamon-bun opened this issue Jul 1, 2019 · 1 comment
Open

SQLite temp files not getting cleaned up #7

cinnamon-bun opened this issue Jul 1, 2019 · 1 comment

Comments

@cinnamon-bun
Copy link

*-shm and *-wal temp files are getting left behind when quitting the process. SQLite is supposed to delete these on exit, and also if it finds them when starting up, but it doesn't for some reason.

https://www.sqlite.org/tempfiles.html

The WAL file is created when the first connection to the database is opened and is normally removed when the last connection to the database closes. However, if the last connection does not shutdown cleanly, the WAL file will remain in the filesystem and will be automatically cleaned up the next time the database is opened.

@pietgeursen
Copy link
Member

This might point to things not being done right in patchql. But it might also be a bug in a lower layer.

I'm tempted to think this is a non-issue if there are a couple of small files that hang around along side the main sqlite file. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants