Function rtrim_bytea

Source
pub fn rtrim_bytea(bytes: &[u8], bytesremoved: &[u8]) -> Box<[u8]>
Expand description

Removes the longest string containing only bytes appearing in bytesremoved from the end of bytes.

ยงExample

query T
SELECT rtrim('\x1234567890'::bytea, '\x9012'::bytea);
----
\x12345678