pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin Goodfellow <Martin.Goodfellow@cis.strath.ac.uk>
To: pgsql-jdbc@postgresql.org
Subject: Problem with COPY using PostgreSQL 9 and JDBC 4
Date: Thu, 25 Nov 2010 16:00:07 +0000
Message-ID: <4CEE8807.9030401@cis.strath.ac.uk> (raw)

Hi all,
       I'm having some trouble using this command via JDBC.  I have a
set of files with which I would like to populate database tables.  If I
use the command, copy table from file with Delimiter ' ';, I get nothing
being added to the table should it be via JDBC but if I do it on the
command line I get all the results added as required.

I've tried to find if other people are having this problem and can't see
any problems related to the current version of PostgreSQL.  Some of the
older versions I realised didn't support the copy command via JDBC but
as far as I can see version 9 does.

Could anyone shed some light on this as to what I am doing wrong?

Note:  originally the files were binary and the query was complaining
about the file signature despite them being valid binary files.  The
same command was used but with "with binary" being added to the query.

Any help would be much appreciated.

Regards,
Martin



view thread (3+ messages)  latest in thread

Message-ID: <4CEE8807.9030401@cis.strath.ac.uk>
Permalink:  ../4CEE8807.9030401@cis.strath.ac.uk/
Also on:    postgresql.org/message-id/4CEE8807.9030401@cis.strath.ac.uk

 · 

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 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-jdbc@postgresql.org
  Cc: Martin.Goodfellow@cis.strath.ac.uk
  Subject: Re: Problem with COPY using PostgreSQL 9 and JDBC 4
  In-Reply-To: <4CEE8807.9030401@cis.strath.ac.uk>
  References: <4CEE8807.9030401@cis.strath.ac.uk>

* 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