Re: duplicate table in two databases

From: Richard Huxton <dev(at)archonet(dot)com>
To: Fabio Ferrero <nutella(at)inwind(dot)it>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: duplicate table in two databases
Date: 2004-08-16 08:01:31
Message-ID: 412069DB.107@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Fabio Ferrero wrote:
> 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?

You might want to look in the contrib/ folder of the source distribution
(or the equivalent in your packaged installation for "dblink". Haven't
used it myself, but it can certainly do what you want here.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2004-08-16 08:06:08 Re: CROSS-TAB query help? I have read it cant be done in one
Previous Message Kaloyan Iliev Iliev 2004-08-16 07:06:07 Inheriting text[] field