X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 86EEDD79CC for ; Fri, 14 Oct 2005 04:25:54 -0300 (ADT) 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 77277-02 for ; Fri, 14 Oct 2005 07:25:51 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by svr1.postgresql.org (Postfix) with ESMTP id 58038D77F4 for ; Fri, 14 Oct 2005 04:25:52 -0300 (ADT) Received: from [194.25.154.138] (helo=webserv.wug.de) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0MKxQS-1EQJwl0qgc-0000yP; Fri, 14 Oct 2005 09:25:43 +0200 Received: from kretschmer by webserv.wug.de with local (Exim 3.36 #1) id 1EQJwl-0003iK-00 for pgsql-sql@postgresql.org; Fri, 14 Oct 2005 09:25:43 +0200 Date: Fri, 14 Oct 2005 09:25:43 +0200 From: "A. Kretschmer" To: pgsql-sql@postgresql.org Subject: Re: copy tables Message-ID: <20051014072543.GG10299@webserv.wug-glas.de> Mail-Followup-To: "A. Kretschmer" , pgsql-sql@postgresql.org References: <001601c5d08c$26339240$1102a8c0@dream> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001601c5d08c$26339240$1102a8c0@dream> X-DEST: 208 X-MSMail-Priority: High X-Message-Flag: Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) X-OS: Linux - weil ich es mir Wert bin! X-Info: registrierter Linux-User 97922 http://counter.li.org User-Agent: mutt-ng 1.5.9i (Linux) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:51ea9561fc3f6d9539a2acd743e4748c X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.267 required=5 tests=[MISSING_MIMEOLE=0, X_MSMAIL_PRIORITY_HIGH=0.267] X-Spam-Level: X-Archive-Number: 200510/153 X-Sequence-Number: 23006 am 14.10.2005, um 8:54:39 +0200 mailte Shavonne Marietta Wijesinghe folgendes: > Hello > > I have 2 postgreSQL databases called "DATA1" and "DATA2" with several tables inside them (table A, B, C). > > I modify the details in table "A" in database "DATA1" > > How can I copy table "A" from database "DATA1" and paste it in database "DATA2" using the same table name ?? Backup the table A from DATA1 and restore it into DATA2. (pg_dump with -t dumps only the specified table) Regards, Andreas -- Andreas Kretschmer (Kontakt: siehe Header) Heynitz: 035242/47212, D1: 0160/7141639 GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net === Schollglas Unternehmensgruppe ===