From: Dave Cramer <pg@fastcrypt.com>
To: tom12167 <tom12167@web.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Backup with Java
Date: Wed, 29 Nov 2006 19:32:43 -0500
Message-ID: <CFAFD8EF-7F66-4DF0-AE45-6B8E5F1708C8@fastcrypt.com> (raw)
In-Reply-To: <456E15EE.2010604@web.de>
References: <456afd7a.330.e42.37531057@webh5.fe.aruba.it>
<1f30b80c0611271020p6045f190sc73d690314bfbee8@mail.gmail.com>
<E20A0078-2A8A-4F3E-BB8D-EEE7BBABF6B0@decibel.org>
<456E15EE.2010604@web.de>
I'd strongly suggest you exec pg_dump from the command line using
System.exec and connect to the remote database. This is certainly re-
inventing a non-trivial wheel.
Dave
On 29-Nov-06, at 6:21 PM, tom12167 wrote:
> I would also like to use such a backup function by JDBC (for
> backing up only one named database)
>
> tom
>
> Jim Nasby schrieb:
>> On Nov 27, 2006, at 12:20 PM, imad wrote:
>>
>>> Read and understand the file 'src/bin/pg_dump/pg_dump.c' in the
>>> postgresql
>>> core server code base. This is the only solution of your problem,
>>> you are going
>>> to rewrite all the C code in JAVA.
>>
>> BTW, if you're going to go to that much trouble, you should ask on
>> -hackers about putting some of the pg_dump functionality into
>> functions, since this isn't the first time people have asked for a
>> non-pg_dump backup solution. It would make sense to abstract
>> things that were reasonable out of pg_dump and into the database
>> itself if there's really that much demand for this.
>>
>> Another option would be providing some means to call pg_dump(all)
>> from a database connection.
>> --
>> Jim Nasby jim@nasby.net
>> EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)
>>
>>
>>
>> ---------------------------(end of
>> broadcast)---------------------------
>> TIP 5: don't forget to increase your free space map settings
>>
>>
>
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>
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: pg@fastcrypt.com, tom12167@web.de
Subject: Re: Backup with Java
In-Reply-To: <CFAFD8EF-7F66-4DF0-AE45-6B8E5F1708C8@fastcrypt.com>
References: <456afd7a.330.e42.37531057@webh5.fe.aruba.it> <1f30b80c0611271020p6045f190sc73d690314bfbee8@mail.gmail.com> <E20A0078-2A8A-4F3E-BB8D-EEE7BBABF6B0@decibel.org> <456E15EE.2010604@web.de> <CFAFD8EF-7F66-4DF0-AE45-6B8E5F1708C8@fastcrypt.com>
* 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