Hi,

Thanks for your mail!

> when a (b/c)lob record is deleted, the
> file is renamed from 1.t75.lob to 1.temp.lob, and then the file may,
> or may not, be deleted when the database is shutdown.

Yes, the file is renamed to *.temp.db when the transaction is committed.

> I couldn't find any consistency: In one test I saw the temp file delete 
> immediately.
> Other times it didn't delete until the database shut down.  Most
> cases, the file doesn't get deleted at all.

The temp file is deleted when it is garbage collected in
TempFileDeleter.java. That's why it is deleted in some cases, but not
always. (The original idea was to use File.deleteOnExit(), but I read
this has some problems.)

I know this is problematic. I will change it in the next release, so
that the temp files for a database are deleted when the database is
closed.

Regards,
Thomas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to