Re: standard interfaces for replication providers

From: Markus Schiltknecht <markus(at)bluegap(dot)ch>
To: Christopher Browne <cbbrowne(at)acm(dot)org>
Subject: Re: standard interfaces for replication providers
Date: 2006-08-08 18:08:52
Message-ID: 44D8D334.5050808@bluegap.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello Christopher,

Christopher Browne wrote:
> Most databases that are interesting to replicate are implemented in C
> or C++, thereby implying that a suitably "deep" API needs to be
> implemented in C.

I generally agree with you. Although it's probably worth mentioning that
the API they propose adds hooks to PostgreSQL in the form of triggers.
This API comes as a patch is against the PostgreSQL source, thus in C.

The nature of triggers in PostgreSQL would then allow to write
replication systems in whatever language you prefer, as long as there is
a PL/{$LANG} for $LANG = your favorite.

I'm questioning if a replication system can be written by only using
triggers as hooks. AFAIK Slony-I uses triggers, so you can probably
better comment on problems or limitations using triggers. For me a
shared library with some hooks as C function calls seems a more
plausible approach.

Regards

Markus

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message alfranio correia junior 2006-08-08 18:23:08 Re: standard interfaces for replication providers
Previous Message Bruce Momjian 2006-08-08 17:58:21 Re: 8.2 features status