SQLite Forum

sqlite3_serialize / deserialize 2GB limit on 64 bit
Login
That doesn't address the issue.  The documentation for [sqlite3_serialize](https://sqlite.org/c3ref/serialize.html), [sqlite3_deserialize](https://sqlite.org/c3ref/deserialize.html), and [sqlite3_malloc64](https://sqlite.org/c3ref/free.html) do not mention any 2GB limit.  In this specific case SQLite is doing a bulk export or import of the database so even the comment in the page you linked isn't obviously pertinent.

In any event can the SQLite team please either document an intended limit of 2GB for serialization, or make it work (eq use a new sqlite3_bulk_alloc with no 2GB limit).

Roger