Re: Problem with batch insert

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: zkn <zkn(at)abv(dot)bg>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Problem with batch insert
Date: 2010-02-18 15:32:17
Message-ID: 20227.1266507137@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

zkn <zkn(at)abv(dot)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.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message zkn 2010-02-18 16:05:47 Re: Problem with batch insert
Previous Message zkn 2010-02-18 12:53:07 Problem with batch insert