pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Cc: Tatsuo Ishii <t-ishii@sra.co.jp>
Cc: darcy@wavefire.com
Cc: jd@www.commandprompt.com
Cc: sfrost@snowman.net
Cc: herve@elma.fr
Subject: Re: PostgreSQL clustering VS MySQL clustering
Date: Sun, 23 Jan 2005 14:42:52 -0800
Message-ID: <200501231442.52830.josh@agliodbs.com> (raw)
In-Reply-To: <20050122.120128.74753619.t-ishii@sra.co.jp>
References: <200501201949.24292.josh@agliodbs.com>
	<200501210947.53938.josh@agliodbs.com>
	<20050122.120128.74753619.t-ishii@sra.co.jp>

Tatsuo,

> I'm not clear what "pgPool only needs to monitor "update switching" by
>
> *connection* not by *table*" means. In your example:
> > (1) 00:00 User A updates "My Profile"
> > (2) 00:01 "My Profile" UPDATE finishes executing.
> > (3) 00:02  User A sees "My Profile" re-displayed
> > (6) 00:04  "My Profile":UserA cascades to the last Slave server
>
> I think (2) and (3) are on different connections, thus pgpool cannot
> judge if SELECT in (3) should go only to the master or not.
>
> To solve the problem you need to make pgpool understand "web sessions"
> not "database connections" and it seems impossible for pgpool to
> understand "sessions".

Depends on your connection pooling software, I suppose.  Most connection 
pooling software only returns connections to the pool after a user has been 
inactive for some period ... generally more than 3 seconds.  So connection 
continuity could be trusted.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



view thread (131+ messages)  latest in thread

Message-ID: <200501231442.52830.josh@agliodbs.com>
Permalink:  ../200501231442.52830.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200501231442.52830.josh@agliodbs.com

 · 

reply

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-performance@postgresql.org
  Cc: josh@agliodbs.com, t-ishii@sra.co.jp, darcy@wavefire.com, jd@www.commandprompt.com, sfrost@snowman.net, herve@elma.fr
  Subject: Re: PostgreSQL clustering VS MySQL clustering
  In-Reply-To: <200501231442.52830.josh@agliodbs.com>

* 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