Re: mysql proxy

From: Lukas Kahwe Smith <smith(at)pooteeweet(dot)org>
To: Bernd Helmle <mailings(at)oopsware(dot)de>
Subject: Re: mysql proxy
Date: 2007-08-28 09:15:32
Message-ID: 46D3E7B4.7010107@pooteeweet.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy

Bernd Helmle wrote:

>> The idea
>> of running scripts in between the "real" client and the database that
>> is ostensibly handling the presumably valuable data makes me airsick.
>> Anything that you could do in such a script, you could do with a
>> stored procedure, and you'd get the benefits of ACID along with it.
>
> I attended a talk at Froscon 2007 where Guiseppe Maxxia shows a "global
> log server" as a use case for his proxy. In my opinion, it's because
> exactly of this reason you are describing that this will never work
> reliably and i can't think of any useful "production" use case where
> someone has a real need for that.

Well there are some things postgresql most definately already has which
mysql did not before the proxy:
- connection pooling
- flexible choice of language for embedding database level logic (mysql
only has partial sql 2003 stored procedure syntax) .. and yes LUA as a
stored proc language inside the proxy is a cheap hild over compared to
what postgresql has to offer

But something I am not so sure about is stuff like:
- app independent read/write splitting for master/slave setups
- app independent auditing

Both of the above can be done in postgresql of course using triggers,
but you would at the very least need to modify the app schema to add the
triggers ..

regards,
Lukas

In response to

Responses

Browse pgsql-advocacy by date

  From Date Subject
Next Message Andrew Sullivan 2007-08-28 13:41:25 Re: mysql proxy
Previous Message Bernd Helmle 2007-08-28 08:26:46 Re: mysql proxy