question about pgagent

From: Jan Verheyden <jan(dot)verheyden(at)uz(dot)kuleuven(dot)ac(dot)be>
To: "'pgsql-sql(at)postgresql(dot)org'" <pgsql-sql(at)postgresql(dot)org>
Subject: question about pgagent
Date: 2009-08-05 13:54:01
Message-ID: E30C7040DE22624185BAD4093190B54437BE5DB442@EX2007-MBX-2.uz.kuleuven.ac.be
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi All,

First I will explain what I try to do:

I'd like to synchronize more or less two databases, in a third database. I mean, I want to book keep when an object has arrived in both databases. (In one database I am allowed to use trigger function but not in the other)

1) Postgres (maintenance database)

2) Database1

3) Database3
How can I set up in a cron job (pgagent), that I check if a certain value f.e. id is present in both database1 database2 and then flag this in the maintenance database?

Select_connect('myconnect', 'dbase=database1');
Select_connect('myconnect2','dbase=database2');

Using
select dblink('myconnect',....????

Thanks in advance!

Jan

Browse pgsql-sql by date

  From Date Subject
Next Message Venkateswara Rao Bondada 2009-08-05 17:05:54 Re: Create table command fails with permission denied
Previous Message Klas Stockhem 2009-08-05 09:56:35 Re: Problems when copy data from dump file