Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 5A2C59FA17D for ; Thu, 30 Nov 2006 14:06:14 -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 70022-03 for ; Thu, 30 Nov 2006 14:05:57 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 60BD99FA170 for ; Thu, 30 Nov 2006 14:05:58 -0400 (AST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GpqI5-0002b7-Uh for pgsql-jdbc@postgresql.org; Thu, 30 Nov 2006 19:05:45 +0100 Received: from 83.145.96.118 ([83.145.96.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Nov 2006 19:05:45 +0100 Received: from Marc.Herbert by 83.145.96.118 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Nov 2006 19:05:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Marc Herbert Subject: Re: Backup with Java Date: Thu, 30 Nov 2006 19:05:09 +0100 Lines: 25 Message-ID: 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> <1164907455.13204.255.camel@coppola.muc.ecircle.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 83.145.96.118 User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux) Cancel-Lock: sha1:42eX3lcOOf5SwG7Yd8Lv3I1suq0= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.51 tagged_above=0 required=5 tests=AWL, BAYES_40, FORGED_RCVD_HELO, RCVD_NUMERIC_HELO, SPF_HELO_PASS, SPF_PASS X-Spam-Level: * X-Archive-Number: 200611/188 X-Sequence-Number: 16230 Csaba Nagy writes: > 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 ? 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. 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!