Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 05AD29FB260 for ; Wed, 29 Nov 2006 20:32:53 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 67170-09 for ; Wed, 29 Nov 2006 20:32:43 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 41C939FB228 for ; Wed, 29 Nov 2006 20:32:43 -0400 (AST) Received: (qmail 27740 invoked from network); 30 Nov 2006 00:32:42 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.14?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 30 Nov 2006 00:32:42 -0000 In-Reply-To: <456E15EE.2010604@web.de> References: <456afd7a.330.e42.37531057@webh5.fe.aruba.it> <1f30b80c0611271020p6045f190sc73d690314bfbee8@mail.gmail.com> <456E15EE.2010604@web.de> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Backup with Java Date: Wed, 29 Nov 2006 19:32:43 -0500 To: tom12167 X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/175 X-Sequence-Number: 16217 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 >