pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Lewis <mark.lewis@mir3.com>
To: Michael Schmidt <michaelmschmidt@msn.com>
Cc: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: backup through Java
Date: Fri, 13 Jul 2007 07:02:33 -0700
Message-ID: <1184335353.387.271.camel@archimedes> (raw)
In-Reply-To: <BAY114-DAV119379C86E6FF54F8AE0E8A3FD0@phx.gbl>
References: <BAY114-DAV119379C86E6FF54F8AE0E8A3FD0@phx.gbl>

When it doesn't work, how does it not work?

If you see pg-dump.exe is still running but not doing anything, then it
might be because it generated more output to stdout than will fit in the
buffer, and you're not reading it.  One common mistake is to forget to
read stdout/stderr from the process.

-- Mark

On Thu, 2007-07-12 at 18:01 -0600, Michael Schmidt wrote:
> Folks,
> I know this isn't technically a JDBC question because backup isn't
> done through JDBC, but I thought this is where the Java experts would
> be.
>  
> I've got a Java application developed in Eclipse interfacing a
> PostgreSQL 8.2.1 database.  The user can do a backup using pg-dump.exe
> - the Java code invokes this as an external process in a thread (Jobs
> interface, in Eclipse parlance).  This works some of the time - but
> not always.  Since it works sometimes, I think the Java code that
> invokes pg_dump.exe is basically OK, but since it hangs at other
> times, there is obviously something bad going on.  I don't know where
> to start looking for problems.  I was wondering if anyone had seen
> similar behavior (Java is usually pretty predictable in my experience)
> or had some thoughts on where the problem could lie so I could at
> least begin debugging my app.  
>  
> Thanks!
> Michael Schmidt



view thread (3+ messages)  latest in thread

Message-ID: <1184335353.387.271.camel@archimedes>
Permalink:  ../1184335353.387.271.camel@archimedes/
Also on:    postgresql.org/message-id/1184335353.387.271.camel@archimedes

 · 

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: mark.lewis@mir3.com, michaelmschmidt@msn.com
  Subject: Re: backup through Java
  In-Reply-To: <1184335353.387.271.camel@archimedes>
  References: <BAY114-DAV119379C86E6FF54F8AE0E8A3FD0@phx.gbl> <1184335353.387.271.camel@archimedes>

* 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