Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id D4518B5DC15 for ; Wed, 7 Sep 2011 18:07:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 51128-10 for ; Wed, 7 Sep 2011 21:07:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mahout.postgresql.org (mahout.postgresql.org [98.129.198.123]) by mail.postgresql.org (Postfix) with ESMTP id DDA63B5DBE7 for ; Wed, 7 Sep 2011 18:07:51 -0300 (ADT) Received: from [98.129.198.116] (helo=gemulon.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1R1PLb-0004x2-GI for pgsql-committers@postgresql.org; Wed, 07 Sep 2011 21:07:51 +0000 Received: from git by gemulon.postgresql.org with local (Exim 4.72) (envelope-from ) id 1R1PLa-0008Hh-Vv for pgsql-committers@postgresql.org; Wed, 07 Sep 2011 21:07:51 +0000 Date: Wed, 07 Sep 2011 21:07:50 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 To: pgsql-committers@postgresql.org From: Tom Lane Subject: pgsql: Fix corner case bug in numeric to_char(). X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/162 X-Sequence-Number: 46021 Rml4IGNvcm5lciBjYXNlIGJ1ZyBpbiBudW1lcmljIHRvX2NoYXIoKS4KClRyYWlsaW5nLXplcm8g c3RyaXBwaW5nIGFwcGxpZWQgYnkgdGhlIEZNIHNwZWNpZmllciBjb3VsZCBzdHJpcCB6ZXJvZXMK dG8gdGhlIGxlZnQgb2YgdGhlIGRlY2ltYWwgcG9pbnQsIGZvciBhIGZvcm1hdCB3aXRoIG5vIGRp Z2l0IHBvc2l0aW9ucwphZnRlciB0aGUgZGVjaW1hbCBwb2ludCAoc3VjaCBhcyAiRk05OTkuIiku CgpSZXBvcnRlZCBhbmQgZGlhZ25vc2VkIGJ5IE1hcnRpIFJhdWRzZXBwLCB0aG91Z2ggSSBkaWRu J3QgdXNlIGhpcyBwYXRjaC4KCkJyYW5jaAotLS0tLS0KbWFzdGVyCgpEZXRhaWxzCi0tLS0tLS0K aHR0cDovL2dpdC5wb3N0Z3Jlc3FsLm9yZy9wZy9jb21taXRkaWZmL2YwYmVkZjNlNDU2YzUyMjc0 OTk1ZDMyZDRjMGM4YTI1MGRlNWMxY2EKCk1vZGlmaWVkIEZpbGVzCi0tLS0tLS0tLS0tLS0tCnNy Yy9iYWNrZW5kL3V0aWxzL2FkdC9mb3JtYXR0aW5nLmMgICAgfCAgIDI3ICsrKysrKysrKysrKysr KysrKysrLS0tLS0tLQpzcmMvdGVzdC9yZWdyZXNzL2V4cGVjdGVkL251bWVyaWMub3V0IHwgICAx OCArKysrKysrKysrKysrKysrKysKc3JjL3Rlc3QvcmVncmVzcy9zcWwvbnVtZXJpYy5zcWwgICAg ICB8ICAgIDQgKysrKwozIGZpbGVzIGNoYW5nZWQsIDQyIGluc2VydGlvbnMoKyksIDcgZGVsZXRp b25zKC0pCgo=