Grokbase
x

Andreas 'ads' Scherbaum (ad...@wars-nicht.de)

Profile | Posts (49)

User Information

Display Name:Andreas 'ads' Scherbaum
Partial Email Address:ad...@wars-nicht.de
Posts:
49 total
2 in PostgreSQL - Admin
32 in PostgreSQL - Advocacy
15 in PostgreSQL - General

5 Most Recent

All Posts
1) Andreas 'ads' Scherbaum Re: [GENERAL] Replication Using Triggers
| +1 vote
It does not only look like pgcluster. Bye
PostgreSQL - General
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Sun, 20 Jan 2008 00:34:11 +0000 Gordan Bobic wrote:

> Scott Marlowe wrote:
> > On Jan 19, 2008 6:14 PM, Gordan Bobic <gordan@bobich.net> wrote:
> >
> > Oh, and there's this too:
> >
> > Cybertec sync-multi-master
> > http://www.postgresql.org/about/news.752
> > http://www.postgresql.org/about/news.752
>
> The design of that seems suspiciously similar to pgcluster with separate
> load balancer and replicator servers.

It does not only look like pgcluster.


Bye

--
    Andreas 'ads' Scherbaum
German PostgreSQL User Group

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
2) Andreas 'ads' Scherbaum Re: [GENERAL] Replication Using Triggers
| +1 vote
Hello, Sequences are only one (small) problem. What about functions returning different results...
PostgreSQL - General
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hello,

On Fri, 18 Jan 2008 17:37:07 +0000 (GMT) [email protected: g...@bobich.net] wrote:

> >>>> This is what I have in mind:
> >>>>
> >>>> Have a plperl function that creates connections to all servers in the
> >>>> cluster (replication partners), and issues the supplied write query to
> >>>> them, possibly with a tag of some sort to indicated it is a replicated
> >>>> query (to prevent circular replication).
> >>>>
> >>>> Have a post execute trigger that calls the above replication function if
> >>>> the query was issued directly (as opposed to replicated), and passes it
> >>>> the query it just executed if it was successful.
> >
> > Not sure here if you mean literally the SQL query that was executed - in
> > which case you have all sorts of problems with sequences and functions
> > returning different values.
>
> Indeed, but sequences at least can be worked around. Post-execute,
> sequence number used should be available already, and the sequence offset
> and increment can be set so as to ensure they do not clash. That's what
> MySQL does (and I must apologize for making the comparison all the time).

Sequences are only one (small) problem. What about functions returning
different results (volatile) for each call? Just imagine random() or
now(). What about inserts or updates selecting parts of table data? You
can't be sure to get exactly the same results on the slave.


> > But there are plenty of solutions that do a lot better than this. Slony-I is
> > the most polular. My favourite is a spin on the old db_mirror that used to be
> > part of the Postgres distribution.
>
> How would Slony be better? It doesn't seem to support master-master
> replication for one.

But it work's. At least master-slave.


> The problem with this is that the ordering becomes inconsistent with
> multiple masters. That would be a bit too inconsistent for my liking. As
> far as I can tell, that is also why MySQL's current replication method is
> unsuitable for more than ring-replication. Having said that, ring suffers
> from similar race conditions, it's more of a hack than a solution.

A lot books are written about this topic, many details researched and
still master-master replication i a very complicated topic. You should
start reading about vector and Lamport clocks. This are the (very)
basic (among others) for your sync problem.


> Now that I think about it, I'm not actually sure that waiting for global
> success before final commit would make update/delete without race
> condition as they won't fail, but can still yield inconsistencies due to
> race conditions. Still, I think it's worth having despite this issue.

Sure, you are right. You now are about to find out what other ppl are
researching the last *uhm* 20 years ;-)


> > You seem to be re-inventing the wheel, and the re-invention is not quite as
> > round as the existing wheel :-)
>
> Not quite - I think multi-master capability is important.

Yes. But master-master or even multi-master is a very complicated topic.
So let's start with something more easy, like master-slave. This works,
you don't have race conditions and that's a good starting point for
more research.


> I presume you mean that you cannot attach triggers to schema changes. Yes,
> I had thought of that a minute ago. I don't suppose this could be deemed a
> feature request for CREATE/ALTER/DROP schema level triggers? ;)

More triggers, not only for ddl changes, would be nice anyway.
I see fields of application for some of my own projects ;-)


Kind regards

--
    Andreas 'ads' Scherbaum
German PostgreSQL User Group

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster
3) Andreas 'ads' Scherbaum Re: [GENERAL] Feature request: NOTIFY enhancement
| +1 vote
Hello, It is possible, that some notifies, if following in a very short time frame, can get lost....
PostgreSQL - General
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hello,

On Thu, 3 Jan 2008 11:21:37 -0500 (EST) Bruce Momjian wrote:

> > I am not sure if I am asking too much but does it make sense, and is it
> > possible, to enhance NOTIFY that process "name/value" pair? Like this:
> >
> > NOTIFY "MyName=MyValue";
> >
> > With the capability of name/value pair, the listener will not have to
> > check notification details by reading tables.
>
> TODO already has:
>
>  * Add optional textual message to NOTIFY
>  
> This would allow an informational message to be added to the notify
> message, perhaps indicating the row modified or other custom
>    information.

It is possible, that some notifies, if following in a very short time
frame, can get lost.

In case we want to send extra text messages with NOTIFY, we should make
sure, that no notify get lost.


Kind regards

--
    Andreas 'ads' Scherbaum
German PostgreSQL User Group

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [email protected: majo...@postgresql.org] so that your
message can get through to the mailing list cleanly
4) Andreas 'ads' Scherbaum [GENERAL] Hotel for FOSDEM 2008
| +1 vote
Hello all, i got a reservation for a hotel in Brussels/Belgium for FOSDEM. The hotel is: Hotel...
PostgreSQL - General
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hello all,

i got a reservation for a hotel in Brussels/Belgium for FOSDEM.
The hotel is:

Hotel Agenda Louise
rue de Florence 6
B-1000 Brussels
Tel:  + 32.2.539.00.31
Fax: + 32.2.539.00.63
www.hotel-agenda.com

It has free wireless and i reserved 20 rooms in advance, the price is
80 Euros per night from friday to sunday. Breakfast, taxes and services
included. Additional days cost 100E per night.

So, who wants to stay with us in this hotel (~10 rooms left), please
let ME know. I will come back to everyone who sends me a mail. If i get
more requests, i will try to get more rooms.


Thanks & kind regards

--
    Andreas 'ads' Scherbaum
German PostgreSQL User Group

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [email protected: majo...@postgresql.org] so that your
message can get through to the mailing list cleanly
5) Andreas 'ads' Scherbaum Re: FOSDEM 2008 - Devroom and booth
| +1 vote
That's the problem i see. And it would make a good picture, at least for us ;-) Bye
PostgreSQL - Advocacy
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Sat, 01 Dec 2007 23:12:28 +0100 Magnus Hagander wrote:

>
> On Sat, 2007-12-01 at 22:55 +0100, Andreas 'ads' Scherbaum wrote:
> > On Sat, 01 Dec 2007 09:42:57 -0500 Robert Treat wrote:
> >
> > > AIUI, Susanne Ebrecht will be there, does she count? :-)
> >
> > No ;-)
>
> Why not? She could do both sides of the shootout.. ;-)

That's the problem i see. And it would make a good picture,
at least for us ;-)


Bye

--
    Andreas 'ads' Scherbaum
German PostgreSQL User Group

spacer
Profile | Posts (49)
Home > People > Andreas 'ads' Scherbaum