Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 6C1D19FA17D for ; Thu, 30 Nov 2006 13:24:31 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 51336-03 for ; Thu, 30 Nov 2006 13:24:16 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.ecircle.de (mail.ecircle.de [195.140.186.200]) by postgresql.org (Postfix) with ESMTP id 30D449FA170 for ; Thu, 30 Nov 2006 13:24:17 -0400 (AST) Received: from einstein.muc.ecircle.de (einstein.muc.ecircle.de [192.168.1.7]) by mail.ecircle.de (READY) with ESMTP id 0ABAE55C058; Thu, 30 Nov 2006 18:24:16 +0100 (CET) Received: from [192.168.1.91] ([192.168.1.91]) by einstein.muc.ecircle.de with Microsoft SMTPSVC(6.0.3790.1830); Thu, 30 Nov 2006 18:24:15 +0100 Subject: Re: Backup with Java From: Csaba Nagy To: Tomi N/A Cc: Dave Cramer , Marc Herbert , Postgres JDBC In-Reply-To: References: <456afd7a.330.e42.37531057@webh5.fe.aruba.it> <1f30b80c0611271020p6045f190sc73d690314bfbee8@mail.gmail.com> <456E15EE.2010604@web.de> <456ED08E.1030101@ipcon.de> <664B3E94-C366-4B3A-8688-8B936E9098EC@fastcrypt.com> Content-Type: text/plain Message-Id: <1164907455.13204.255.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 30 Nov 2006 18:24:15 +0100 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 30 Nov 2006 17:24:15.0933 (UTC) FILETIME=[5C50A6D0:01C714A4] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/185 X-Sequence-Number: 16227 > Yeah, but the way this have been architected, it's impossible to do a > backup over the network, i.e. with only the 5432 port at your > disposal. And that's just one of the _obvious_ drawbacks...the way I > see it, the way to do it would be to move the dump code into the > database server. Let _the_server_ do all the hard work and let the > application on the other end do whatever it wants with the (supposedly > plain text) dump. That's flexibility, and it wouldn't require > rewriting the dump utility - just a move into the server itself. The main reason it's not done so is because pg_dump is working across server versions. You will want to do the dump using the newer pg_dump, because it can create SQL which compensates for postgres internal changes like user/group/role creation syntax and the like. If you tie the dump software to the server, how will you do a dump of an old server using the new dump client ? Cheers, Csaba.