Extend format() to handle field width and left/right alignment.
Tom Lane <tgl@sss.pgh.pa.us>
Extend format() to handle field width and left/right alignment. This change adds some more standard sprintf() functionality to format(). Pavel Stehule, reviewed by Dean Rasheed and Kyotaro Horiguchi
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +211 −11 |
| src/backend/utils/adt/varlena.c | modified | +315 −80 |
| src/test/regress/expected/text.out | modified | +110 −5 |
| src/test/regress/sql/text.sql | modified | +20 −1 |