diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 340efac6556..b362d8ac034 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ - + Functions and Operators @@ -5320,6 +5320,45 @@ SELECT SUBSTRING('XY1234Z', 'Y*?([0-9]{1,3})'); + + Certain modifiers can be applied to any template pattern to alter its + behavior. For example, FM9999 + is the 9999 pattern with the + FM modifier. + shows the + modifier patterns for numeric formatting. + + + + Template Pattern Modifiers for Numeric Formatting + + + + Modifier + Description + Example + + + + + FM prefix + fill mode (suppress padding blanks and zeroes) + FM9999 + + + TH suffix + uppercase ordinal number suffix + 999TH + + + th suffix + lowercase ordinal number suffix + 999th + + + +
+ shows some examples of the use of the to_char function.