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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Extend format() to handle field width and left/right alignment.
Date: 2013-03-15 02:57:15
Message-ID: E1UGKpX-000720-FQ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/73e7025bd8eed941a068f0a7a71e02dca8d38d1c

Modified Files
--------------
doc/src/sgml/func.sgml | 222 +++++++++++++++++++-
src/backend/utils/adt/varlena.c | 395 ++++++++++++++++++++++++++++--------
src/test/regress/expected/text.out | 115 ++++++++++-
src/test/regress/sql/text.sql | 21 ++-
4 files changed, 656 insertions(+), 97 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2013-03-15 16:26:32 pgsql: Improve error reporting in code that checks for buffer refcount
Previous Message Tom Lane 2013-03-14 19:11:14 pgsql: Avoid inserting no-op Limit plan nodes.