By default, Message.raw
is TOAST-able, however Postgres will not move values smaller than 2040 bytes into the TOAST table. See https://www.postgresql.org/docs/current/sql-createtable.html#RELOPTION-TOAST-TUPLE-TARGET
We could set toast_tuple_target
to change this, but need to investigate if this would actually be beneficial.