pub fn bool_out(input: bool, writer: &mut impl Write)
bool_out is different from cast(boolean) -> varchar to produce a single char. PostgreSQL uses different variants of bool-to-string in different situations.
bool_out
cast(boolean) -> varchar
PostgreSQL