From: Lou Picciano <LouPicciano@comcast.net>
To: pgsql-testers@postgresql.org
Subject: Single-statement INSERT with multiple VALUES clauses behaving strangely...
Date: Mon, 21 Jun 2010 17:16:21 -0400
Message-ID: <BBC6113D-0AC0-4E67-8E41-11F929888C8B@comcast.net> (raw)
[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=> \i importfile.sql
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);
[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.=
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-testers@postgresql.org
Cc: LouPicciano@comcast.net
Subject: Re: Single-statement INSERT with multiple VALUES clauses behaving strangely...
In-Reply-To: <BBC6113D-0AC0-4E67-8E41-11F929888C8B@comcast.net>
References: <BBC6113D-0AC0-4E67-8E41-11F929888C8B@comcast.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox