I try to get the error from this call:
$ psql --dbname=synapse -c "SELECT (json::JSONB->>'content')::JSONB->>'name' AS channel_name, json::JSONB->>'room_id' AS room_id, json::JSONB->>'sender' as sender FROM event_json WHERE json::JSONB->>'room_id' LIKE '%matrix.org%';";
Pager usage is off.
FEHLER: nicht unterstützte Unicode-Escape-Sequenz
DETAIL: \u0000 kann nicht in »text« umgewandelt werden.
CONTEXT: JSON-Daten, Zeile 1: ...": {"age_ts": 1535735391873}, "content": {"body":...
but the error message is cut off, how do I get the full error message?