pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: zkn <zkn@abv.bg>
Cc: pgsql-sql@postgresql.org
Subject: Re: Problem with batch insert
Date: Thu, 18 Feb 2010 10:32:17 -0500
Message-ID: <20227.1266507137@sss.pgh.pa.us> (raw)
In-Reply-To: <1077F011-859B-4AE5-AE95-65B45F775DE6@abv.bg>
References: <1077F011-859B-4AE5-AE95-65B45F775DE6@abv.bg>

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.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <20227.1266507137@sss.pgh.pa.us>
Permalink:  ../20227.1266507137@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20227.1266507137@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, zkn@abv.bg
  Subject: Re: Problem with batch insert
  In-Reply-To: <20227.1266507137@sss.pgh.pa.us>

* 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