Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id AAAFC632416 for ; Wed, 23 Jun 2010 15:02:04 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 66544-10 for ; Wed, 23 Jun 2010 18:01:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from glacier.frostconsultingllc.com (glacier.frostconsultingllc.com [69.36.227.170]) by mail.postgresql.org (Postfix) with ESMTP id 872ED6326F9 for ; Wed, 23 Jun 2010 15:01:57 -0300 (ADT) Received: from dsl081-245-111.sfo1.dsl.speakeasy.net ([64.81.245.111] helo=Sidney-Stratton.local) by glacier.frostconsultingllc.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.69) (envelope-from ) id 1ORUGm-0002J1-M9; Wed, 23 Jun 2010 11:01:55 -0700 Message-ID: <4C224C10.7080403@agliodbs.com> Date: Wed, 23 Jun 2010 11:01:52 -0700 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Lou Picciano CC: pgsql-testers@postgresql.org Subject: Re: Single-statement INSERT with multiple VALUES clauses behaving strangely... References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201006/27 X-Sequence-Number: 141 > *[Results]:* Single Statement approach (#2) always reports ERROR: value > too long for type character varying(16), even though approach #1 - > Multiple Inserts - imported exactly the same data with no error. Is the > single statement approach, with its pre-testing of the query, more > fastidious? IE, is my data bad, or is this a bug? I can't reproduce this issue. You'll need to provide a test case. In other words, I suspect that the data wasn't exactly the same in both cases. -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com