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 044F314B2800 for ; Thu, 12 Aug 2004 11:12:47 -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 19677-02 for ; Thu, 12 Aug 2004 14:12:38 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 43F3014B280D for ; Thu, 12 Aug 2004 11:12:27 -0300 (ADT) 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 i7CEBgiG019968 for ; Thu, 12 Aug 2004 14:12:02 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i7CDgtYQ010301 for pgsql-sql@postgresql.org; Thu, 12 Aug 2004 13:42:55 GMT Message-ID: <411B73D0.3080208@inwind.it> From: Fabio Ferrero User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 X-Accept-Language: en MIME-Version: 1.0 X-Newsgroups: comp.databases.postgresql.sql Subject: duplicate table in two databases Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 15 Date: Thu, 12 Aug 2004 15:42:40 +0200 X-Complaints-To: newsmaster@fastweb.it To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/128 X-Sequence-Number: 18625 I use postgres 7.2.1 (debian woody) and PHP. I've two databases (foo and bar for example) with the same table (ie. stamps). It's possible with a single query transfer the data from the stamps table in db foo to the stamps table in db bar? Or I need a row by row copy? Or maybe a dump on temp file? (with one db and two tables with the same record I can use INSERT INTO foo SELECT * FROM bar). Thanks.