trim ( [LEADING | TRAILING | BOTH] [characters text] FROM string text ) → text → textRemoves the longest string containing only characters in
characters (a space by default) from the start, end, or both ends (BOTH is the default) of string.Removes the longest string containing only characters in characters (a space by default) from the start, end, or both ends (BOTH is the default) of string.
English manual coverage begins with PostgreSQL 7.1. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
characters (a space by default) from the start, end, or both ends (BOTH is the default) of string.trim ( [LEADING | TRAILING | BOTH] [characters text] FROM string text ) → text → textRemoves the longest string containing only characters in
characters (a space by default) from the start, end, or both ends (BOTH is the default) of string.trim ( [LEADING | TRAILING | BOTH] [FROM] string text [, characters text] ) → text → textThis is a non-standard syntax for
trim().trim ( [LEADING | TRAILING | BOTH] bytesremoved bytea FROM bytes bytea ) → bytea → byteaRemoves the longest string containing only bytes appearing in
bytesremoved from the start, end, or both ends (BOTH is the default) of bytes.trim ( [LEADING | TRAILING | BOTH] [FROM] bytes bytea, bytesremoved bytea ) → bytea → byteaThis is a non-standard syntax for
trim().{"inputs":[{"file":"functions-binarystring.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"cd434063935e362cbb3621171770936b04bafcd58673d71a20cd6992580b2d84","version":"18.7"},{"file":"functions-string.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"dbe9f91e55c35969d99a8d2697b6f7bd5388a24ccc2b89706a666f176025f1e2","version":"18.7"},{"file":"functions-binarystring.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"a5ee5be3c79e45371853d5c6dd8b1b3f52734bbc17726dbe626837179a1da1e0","version":"18.7"},{"file":"functions-string.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"7eecd3bb343149124be0476a539f3c682476eab2a15489a0e0ad06fbb769ea9e","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"}Full definition and evidence JSON
center · PostgreSQL 18 · wiki-repair-20261023:38d0a15af9529ff1212322c182edf9d07da3c410bc828606cce6a61c3dff168c
Text language: en · wiki-repair-20261023:38d0a15af9529ff1212322c182edf9d07da3c410bc828606cce6a61c3dff168c