Anything that returns more than 1 MB in a single row or a JSON query that returns more than one MB total won't work:
edgedb> select str_repeat('a', 2000000);
edgedb error: ClientConnectionError: message length 2000014 is too long
Reconnecting...
I think we just need to get rid of the limit. If it was just problem 2, then I wouldn't be that bothered if the rust bindings wanted a limit (though 1 MB seems quite low), but dumps absolutely need to work and the CLI uses the rust bindings for dumps.
The tokio version has a maximum message length of 1 MB, but it is totally plausible to need more than that.
I think we just need to get rid of the limit. If it was just problem 2, then I wouldn't be that bothered if the rust bindings wanted a limit (though 1 MB seems quite low), but dumps absolutely need to work and the CLI uses the rust bindings for dumps.