Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 29ED09FA0EE for ; Fri, 1 Dec 2006 05:35:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 22877-04 for ; Fri, 1 Dec 2006 05:35:36 -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 E36F99FA173 for ; Fri, 1 Dec 2006 05:35:38 -0400 (AST) Received: from einstein.muc.ecircle.de (einstein.muc.ecircle.de [192.168.1.7]) by mail.ecircle.de (READY) with ESMTP id C7D8455C04E; Fri, 1 Dec 2006 10:35:37 +0100 (CET) Received: from [192.168.1.91] ([192.168.1.91]) by einstein.muc.ecircle.de with Microsoft SMTPSVC(6.0.3790.1830); Fri, 1 Dec 2006 10:35:37 +0100 Subject: Re: Backup with Java From: Csaba Nagy To: Marc Herbert Cc: Postgres JDBC In-Reply-To: References: Content-Type: text/plain Message-Id: <1164965737.13204.264.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Fri, 01 Dec 2006 10:35:37 +0100 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Dec 2006 09:35:37.0714 (UTC) FILETIME=[0EF6AD20:01C7152C] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/4 X-Sequence-Number: 16236 > Sorry I think I got it finally: what you are saying is that pg_dump is > not only a backup tool, but some kind of database format conversion > tool. Now I think I understand why implementing externally makes sense. This is what I meant. > However, it would be nice to also have a simple, non-converting > pg_dumb_dump utility available, easy to re-implement and maintain in > other languages than C with minimal duplication. Something based on a > two commands only protocol: "SAVE DATABASE" and "RESTORE DATABASE". > > Most backups operations do not care about cross-compatibility. Backups > happen much more often than upgrades! Actually, if there were a working and maintained pg_upgrade, I'm pretty sure nobody would use pg_dump as an upgrade facility anymore. Then it could be integrated to the server... Or alternatively, given that when you upgrade you usually dump/reload anyway, the new server itself could connect to the old one and pull the dump/reload in one go. Cheers, Csaba.