Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id EFC24B5DC23 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 98303-04 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 DF988B5DBF9 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-0004x1-BX 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 1R1PLb-0008Hq-5b for pgsql-committers@postgresql.org; Wed, 07 Sep 2011 21:07:51 +0000 Date: Wed, 07 Sep 2011 21:07:51 +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/166 X-Sequence-Number: 46025 Rml4IGNvcm5lciBjYXNlIGJ1ZyBpbiBudW1lcmljIHRvX2NoYXIoKS4KClRyYWlsaW5nLXplcm8g c3RyaXBwaW5nIGFwcGxpZWQgYnkgdGhlIEZNIHNwZWNpZmllciBjb3VsZCBzdHJpcCB6ZXJvZXMK dG8gdGhlIGxlZnQgb2YgdGhlIGRlY2ltYWwgcG9pbnQsIGZvciBhIGZvcm1hdCB3aXRoIG5vIGRp Z2l0IHBvc2l0aW9ucwphZnRlciB0aGUgZGVjaW1hbCBwb2ludCAoc3VjaCBhcyAiRk05OTkuIiku CgpSZXBvcnRlZCBhbmQgZGlhZ25vc2VkIGJ5IE1hcnRpIFJhdWRzZXBwLCB0aG91Z2ggSSBkaWRu J3QgdXNlIGhpcyBwYXRjaC4KCkJyYW5jaAotLS0tLS0KUkVMOF8zX1NUQUJMRQoKRGV0YWlscwot LS0tLS0tCmh0dHA6Ly9naXQucG9zdGdyZXNxbC5vcmcvcGcvY29tbWl0ZGlmZi9hZTQyM2RkMTg3 YzJlZGIxNWIzMGEwN2ExZWQ0NDBlZmJmNTMyZTIxCgpNb2RpZmllZCBGaWxlcwotLS0tLS0tLS0t LS0tLQpzcmMvYmFja2VuZC91dGlscy9hZHQvZm9ybWF0dGluZy5jICAgIHwgICAyNyArKysrKysr KysrKysrKysrKysrKy0tLS0tLS0Kc3JjL3Rlc3QvcmVncmVzcy9leHBlY3RlZC9udW1lcmljLm91 dCB8ICAgMTggKysrKysrKysrKysrKysrKysrCnNyYy90ZXN0L3JlZ3Jlc3Mvc3FsL251bWVyaWMu c3FsICAgICAgfCAgICA0ICsrKysKMyBmaWxlcyBjaGFuZ2VkLCA0MiBpbnNlcnRpb25zKCspLCA3 IGRlbGV0aW9ucygtKQoK