Extend format() to handle field width and left/right alignment.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 73e7025bd8eed941a068f0a7a71e02dca8d38d1c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2013-03-15T02:56:56Z
Releases: 9.3.0
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

PathChange+/−
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