SQLite Forum

"database or disk is full" with in-memory database. Suggested next steps?
Login
Thank you -- do similar concerns also apply to [sqlite3_serialize()](https://www.sqlite.org/c3ref/serialize.html)? The docs imply that [sqlite3_malloc64()](https://www.sqlite.org/c3ref/free.html) will be called to alloc the memory for the returned serialized copy. So if the given in-memory database is greater than 2GiB, will serialization fail?

rqlite does not set `SQLITE_SERIALIZE_NOCOPY` during [its call to `sqlite3_serialize()`](https://github.com/rqlite/go-sqlite3/blob/v1.21.0/sqlite3.go#L929) and I do see a calls to `sqlite3_malloc64()` in `sqlite3_serialize()` though I have not studied the code in depth.