See /contrib/dblink, or use an application that attaches to both databases, or use COPY somehow.
--------------------------------------------------------------------------- Wei Weng wrote: > I want to select some data out of database A, and insert them into database B. Is it >possible to do in one SQL query? > > Thanks > > Wei -- Bruce Momjian | http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster