Re: [Replica-hooks-discuss] Integrating Replication ino

From: Markus Schiltknecht <markus(at)bluegap(dot)ch>
To: alfranio correia junior <alfranio(at)lsd(dot)di(dot)uminho(dot)pt>
Cc: replica-hooks-discuss(at)pgfoundry(dot)org, " José Orlando =?ISO-8859-1?Q?_Pereira?=" <jop(at)lsd(dot)di(dot)uminho(dot)pt>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [Replica-hooks-discuss] Integrating Replication ino
Date: 2006-11-23 17:26:12
Message-ID: 4565D9B4.2060404@bluegap.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-hackers

Hi,

alfranio correia junior wrote:
> We have the following commands:
>
> SET TRANSACTION MASTER
>
> and
>
> CREATE TRIGGER <name> for { STARTUP | SHUTDOWN |
> BEGIN TRANSACTION | COMMIT TRANSACTION | ROLLBACK TRANSACTION }
> execute procedure <func> ( <funcargs> )

Okay.

> I think that we should discuss requirements first instead of going
> towards syntax. The latter is the last step to achieve a common
> set of ideas.

I still maintain the point that I want to check requirements first. For
that I need a working prototype. And I'm easy with prototyping in C in
the backend code. If there's really a requirement for hooks, I can add
them and decouple from PostgreSQL source code later on.

What do you currently base your hooks on? IMO it's just naive to expect
to be able to define hooks now, especially hooks as general as you seem
to be heading to (I've read about sync and async multi master
replication, single master replication as well as materialized views).

Another point: modularization is nice and well, where appropriate. But
here I don't see how it could help the user. Or do you expect users to
plug in and out replication solutions like USB sticks? I think most
users want to have *one* replication solution that works. Out of the
box. Maybe they want one which can do sync as well as async replication,
sure. But hooks don't give you that, nor do they make it any easier.

I agree that it's helpful to modularize it in code. But you don't need
hooks for that.

I know I'm probably somewhat alone with that point of view.

Regards

Markus

In response to

Responses

Browse pgsql-advocacy by date

  From Date Subject
Next Message Brad Nicholson 2006-11-23 20:40:15 Re: Priority to a mission critical transaction
Previous Message alfranio correia junior 2006-11-23 16:55:20 Re: Integrating Replication into Core

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2006-11-23 18:05:06 Re: FKs + partial indexes?
Previous Message Bruce Momjian 2006-11-23 17:20:58 Re: [PERFORM] Direct I/O issues