pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roberto Mello <rmello@cc.usu.edu>
To: Christian Lübeck <c.luebeck@gmx.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Function using more than one database
Date: Fri, 26 Jul 2002 15:45:36 -0600
Message-ID: <20020726214536.GA27840@cc.usu.edu> (raw)
In-Reply-To: <ahmnt5$4gc$1@news.hub.org>
References: <ahmnt5$4gc$1@news.hub.org>

On Wed, Jul 24, 2002 at 07:24:52PM +0200, Christian Lübeck wrote:
> Hi group,
> 
> i am currently learning PGSQL and having a question:
> 
> In DB1 i have got a table tbl1. In this table there are added, let's say 300
> rows a day. Every time, rows are added, I want to Server to move these rows
> to other DBs (DB2,DB3,DB4).
> This seems not to work with Pl/Pgsql (or maybe I don't know the right
> syntax).
> Is there any other way, any other language to do so?

Any language, except for PostgreSQL's PL languages, can do that. Just open
two (or more) connections to your different databases.

-Roberto

-- 
+----| http://fslc.usu.edu/ USU Free Software & GNU/Linux Club |------+
  Roberto Mello - Computer Science, USU - http://www.brasileiro.net/ 
       http://www.sdl.usu.edu/ - Space Dynamics Lab, Developer    
Female users not found: (C)ry, ($)*&%^#%$, (H)angUp



Message-ID: <20020726214536.GA27840@cc.usu.edu>
Permalink:  ../20020726214536.GA27840@cc.usu.edu/
Also on:    postgresql.org/message-id/20020726214536.GA27840@cc.usu.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rmello@cc.usu.edu, c.luebeck@gmx.de
  Subject: Re: Function using more than one database
  In-Reply-To: <20020726214536.GA27840@cc.usu.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox