Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 2DF1D632410 for ; Mon, 21 Jun 2010 18:16:35 -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 90000-02 for ; Mon, 21 Jun 2010 21:16:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from QMTA11.westchester.pa.mail.comcast.net (qmta11.westchester.pa.mail.comcast.net [76.96.59.211]) by mail.postgresql.org (Postfix) with ESMTP id 01DB46322FB for ; Mon, 21 Jun 2010 18:16:27 -0300 (ADT) Received: from omta01.westchester.pa.mail.comcast.net ([76.96.62.11]) by QMTA11.westchester.pa.mail.comcast.net with comcast id Yg4a1e00E0EZKEL5BlGT2F; Mon, 21 Jun 2010 21:16:27 +0000 Received: from imac.42.168.192.in-addr.arpa ([76.117.184.231]) by omta01.westchester.pa.mail.comcast.net with comcast id YlGT1e0074zyFz83MlGT1H; Mon, 21 Jun 2010 21:16:27 +0000 From: Lou Picciano X-Apple-Mail-Stationery: 45655888-E52F-42B7-A29F-41D13C34A678 Content-Type: multipart/alternative; boundary=Apple-Mail-5-347554695 Subject: Single-statement INSERT with multiple VALUES clauses behaving strangely... Date: Mon, 21 Jun 2010 17:16:21 -0400 Message-Id: To: pgsql-testers@postgresql.org Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.791 tagged_above=-10 required=5 tests=BAYES_50=0.8, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/23 X-Sequence-Number: 137 --Apple-Mail-5-347554695 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii [TEST REPORT] [Release]: 9.0beta2 [Test Type]: Interface (psql data load testing) [Test]: Testing various configurations of INSERT syntax, in order to do = server load testing. [Platform]: SUN E450 Quad, Solaris 10. [Parameters]: Two separate tests, performed as psql imports; ie, = dbname=3D> \i importfile.sql 1) INSERT INTO table VALUES (value0, value1, value2); vs. 2) INSERT INTO table (field0, field1, field2) VALUES=20 (value0, value1, value2), ... 2000 records (value0, value1, value2); [Failure]: YES (it would seem..) [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? [Comments]: Trying COPY next.= --Apple-Mail-5-347554695 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
[TEST REPORT]
[Release]: 9.0beta2
[Test Type]: Interface (psql data load = testing)
[Platform]: SUN E450 Quad, Solaris = 10.
1) INSERT INTO table VALUES = (value0, value1, value2);    vs.
2) INSERT INTO table (field0, field1, field2) = VALUES 
(value0, = value1, value2),
= ... 2000 records
= (value0, value1, = value2);
[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?
[Comments]: Trying COPY = next.
= --Apple-Mail-5-347554695--