pub const MAX_PAYLOAD: usize = 7999;
Largest payload pg_notify accepts with the default Postgres configuration.
pg_notify