X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5125D3A3F13 for ; Fri, 29 Oct 2004 15:22:36 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 45617-07 for ; Fri, 29 Oct 2004 14:22:28 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 16D4B3A3F20 for ; Fri, 29 Oct 2004 15:22:28 +0100 (BST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i9TEMNJ7048838 for ; Fri, 29 Oct 2004 14:22:23 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i9TE4LSU042362 for pgsql-sql@postgresql.org; Fri, 29 Oct 2004 14:04:21 GMT From: nialllinden@yahoo.com (Niall Linden) X-Newsgroups: comp.databases.postgresql.sql Subject: paertially restoring a DB Date: 29 Oct 2004 07:04:25 -0700 Organization: http://groups.google.com Lines: 24 Message-ID: <52684575.0410290604.5f906666@posting.google.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.5 tagged_above=0.0 required=5.0 tests=FORGED_YAHOO_RCVD X-Spam-Level: X-Archive-Number: 200411/1 X-Sequence-Number: 19320 i am having a problem with dump and restore. basically i have 2 databases maindb and tempdb the databases are almost the same but the main db has some extra tables which dont change. what i need to do is get all the information form the temp db and put it in the main db. the tempdb should overwrite all the data in the main db, but the tables that exist in the maindb only should remain ie maindb has tables: dbsettings, data1, data2 tempdb has tables: data1, data2 then the tables (and data) data1,2 from tempdb should overwrite their corresponding tables but dbsettings should remain unchanged in maindb. any things ive tried overwrite all the tables and i loose dbsettings table completely (not good) any help appreciated Niall