From: zkn <zkn@abv.bg>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Problem with batch insert
Date: Thu, 18 Feb 2010 18:05:47 +0200
Message-ID: <B4038102-1B3F-45E5-8C9E-9C2818815419@abv.bg> (raw)
In-Reply-To: <20227.1266507137@sss.pgh.pa.us>
References: <1077F011-859B-4AE5-AE95-65B45F775DE6@abv.bg>
<20227.1266507137@sss.pgh.pa.us>
On 18.02.2010, at 17:32, Tom Lane wrote:
> zkn <zkn@abv.bg> writes:
>> I have a weird problem with batch insert. It works fine on my development machine but when I upload to the server it fails. Here is the log:
>
>> DEBUG [http-8443-2] - {conn-100123} Preparing Statement: insert into target_filters_sections (filter_id, section_id) values (?, ?) , (?, ?)
>
>> DEBUG [http-8443-2] - Unable to translate SQLException with SQL state '42601', error code '0, will now try the fallback translator
>
> 42601 is a syntax error, although I think you ought to complain to
> somebody about the fact that your tools don't show you the actual server
> error message.
>
>> Postgre version on the server 8.1 on development 8.3
>
> 8.1 does not support multiple rows in a VALUES construct.
Yes, it was the postgre version.
>
> regards, tom lane
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
>
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: zkn@abv.bg, tgl@sss.pgh.pa.us
Subject: Re: Problem with batch insert
In-Reply-To: <B4038102-1B3F-45E5-8C9E-9C2818815419@abv.bg>
* 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