pub fn to_text(ty: u32, value: &Value, session: &dyn Session) -> Result<String>
The cast of a value to text: the output function, with the casts of pg_cast that differ from it. bool gives true and false, and bpchar loses its trailing spaces.
text
pg_cast
bool
true
false
bpchar
The errors of output.
output