Skip to content

Postgres: Support TRIM FROM syntax - #2493

Open
BenSatori wants to merge 2 commits into
apache:mainfrom
BenSatori:postgres-trim-from
Open

Postgres: Support TRIM FROM syntax#2493
BenSatori wants to merge 2 commits into
apache:mainfrom
BenSatori:postgres-trim-from

Conversation

@BenSatori

@BenSatori BenSatori commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

PostgreSQL documents trim([ LEADING | TRAILING | BOTH ] [ characters text ] FROM string text) and its non-standard comma form with optional FROM: https://www.postgresql.org/docs/current/functions-string.html

This change updates parse_trim_expr to handle TRIM(FROM string) for dialects that support Postgres-style comma-separated TRIM syntax, and preserves an explicit trim side for comma-form calls such as TRIM(BOTH FROM string, characters).

AI assistance was used to prepare this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant