From: Shane Ambler <pgsql@Sheeky.Biz>
To: Marcin Krawczyk <jankes.mk@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: connections between servers
Date: Fri, 04 Apr 2008 04:05:31 +1030
Message-ID: <47F51563.9060108@Sheeky.Biz> (raw)
In-Reply-To: <95f6bf9b0804031000r6c582264j83252541a9fb9da9@mail.gmail.com>
References: <95f6bf9b0804031000r6c582264j83252541a9fb9da9@mail.gmail.com>
Marcin Krawczyk wrote:
> Hi all. I was wondering if it's possible for a trigger to perform operations
> on a database on different server? I saw somewhere that there's a piece of
> software that allows conneciotns between different databases, but what about
> different servers? I also thought about using perl, would it be possible to
> connect to different server from within perl trigger?
> Thanks in advance.
>
> regards
> mk
>
Yes it is possible. A PL/Perl trigger is one option you have.
dblink (in contrib) and dbi-link, dblink-tds, oralink and odbclink are
other options at pgfoundry.org depending on your needs.
There was a recent discussion in the general mailing list about this.
http://archives.postgresql.org/pgsql-general/2008-03/msg01343.php
--
Shane Ambler
pgSQL (at) Sheeky (dot) Biz
Get Sheeky @ http://Sheeky.Biz
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: pgsql@Sheeky.Biz, jankes.mk@gmail.com
Subject: Re: connections between servers
In-Reply-To: <47F51563.9060108@Sheeky.Biz>
* 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