Re: cluster replication with intermezzo

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, bob(at)bob(dot)usuhs(dot)mil, pgsql-general(at)postgresql(dot)org
Subject: Re: cluster replication with intermezzo
Date: 2002-10-03 19:21:06
Message-ID: 3D9C98A2.666F5BF8@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Neil Conway wrote:
>
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> > Robert Williams <bob(at)bob(dot)usuhs(dot)mil> writes:
> > > I don't thing this should be a problem,
> > > since as I understand it, table and row
> > > locking occurs at the postgres backend level
> > > and lock files are kept in a database table,
> >
> > No, the locking is all done in shared memory. Since you've got two
> > postmasters with two separate shared memory blocks, there is no
> > interlocking between the two sets of backends.
>
> Speaking of which, I vaguely recall the OpenMOSIX guys talking about
> possibly implementing clusterable shared memory (i.e. "shared" across
> machines in a cluster) at some point in the future. There would still
> be some problems with using PostgreSQL in that environment (e.g. the
> different semantics between NFS and normal filesystems), but it's an
> interesting possibility, at any rate.

Only if they implement cluster-shared-memory supporting TAS. Otherwise
we would have to fallback to some sort of cluster-safe implementation of
semaphores for every single bit to lock ... and that I guess would eat
alot of the neat performance someone expects to get from that setup.

Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-10-03 19:27:52 Re: Restoring databases using only data/ dir
Previous Message Oleg Bartunov 2002-10-03 19:09:43 Re: How to create dictionaries for tsearch