Expose helper functions scan_quoted_identifier and scan_identifier.

Robert Haas <rhaas@postgresql.org>

Commit: e0e819cc08d3dc6fe843779c2bb3388135d20d14
Author: Robert Haas <rhaas@postgresql.org>
Date: 2026-04-06T15:13:25Z
Expose helper functions scan_quoted_identifier and scan_identifier.

Previously, this logic was embedded within SplitIdentifierString,
SplitDirectoriesString, and SplitGUCList. Factoring it out saves
a bit of duplicated code, and also makes it available to extensions
that might want to do similar things without necessarily wanting to
do exactly the same thing.

Reviewed-by: Matheus Alcantara <matheusssilv97@gmail.com>
Reviewed-by: Lukas Fittl <lukas@fittl.com>
Discussion: http://postgr.es/m/CA+Tgmob-0W8306mvrJX5Urtqt1AAasu8pi4yLrZ1XfwZU-Uj1w@mail.gmail.com

Files

PathChange+/−
src/backend/utils/adt/varlena.c modified +99 −90
src/include/utils/varlena.h modified +3 −0

Discussion