SQL Queries across multiple databases

From: Rajit Singh <singh(dot)raj(at)studychoice(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: SQL Queries across multiple databases
Date: 2001-01-26 10:46:40
Message-ID: 20010126104640.A16802@studychoice.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I was wondering if it was possible to use psql, or another client, to perform SQL queries across multiple databases. We currently write no end of perl scripts to perform our operations across DBs - it'd be nice to have a method to do it more simply.

I suppose I could do something like:

echo "select into temp table blah..." | psql db; pg_dump -t blah db | psql other_db

Is there another, more direct way of doing this, that anyone knows of?

Thanks in advance,
Rajit

Browse pgsql-general by date

  From Date Subject
Next Message Pete Forman 2001-01-26 11:12:32 Re: beta3 Solaris 7 (SPARC) port report [ Was: Looking for . . . ]
Previous Message Gilles DAROLD 2001-01-26 10:22:13 Re: Connection pooling