Re: Notes on converting from MySQL 5.0.x to PostgreSQL

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
Cc: Alex Turner <armtuk(at)gmail(dot)com>, Jason McManus <mcmanus(dot)jason(at)gmail(dot)com>, pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Notes on converting from MySQL 5.0.x to PostgreSQL
Date: 2006-07-11 17:07:43
Message-ID: 44B3DADF.2040609@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-www

On 7/11/2006 11:57 AM, Scott Marlowe wrote:

> On Tue, 2006-07-11 at 10:45, Jan Wieck wrote:
>> On 7/10/2006 10:00 PM, Alex Turner wrote:
>>
>> > http://dev.mysql.com/doc/refman/5.1/en/replication-row-based.html
>> >
>> > 5.1
>>
>> Ah, thanks. So I guess 5.1.5 and 5.1.8 must be considered major feature
>> minor/bugfix releases. I still don't understand how people can use
>> software in production that has literally zero bugfix upgrade path
>> without the risk of incompatibility due to new features. I consider
>> every IT manager, who makes that choice, simply overpaid.
>
> Dear god! That page made my eyes bleed.
>
> Individual users can choose the method of replication for their
> sessions?
>
> There's a mixed method that switches back and forth?

It is totally unclear from that page what would make the server decide
when to pick one or the other method. It seems to me that this is mainly
an optimization for many single inserts in order to get a smaller
binlog. Note that according to this page

http://dev.mysql.com/doc/internals/en/replication-prepared-statements.html

the master currently substitutes the parameters as literals into the
query for prepared statements.

What also is totally unclear, maybe someone with more MySQL experience
can answer this question, is if the binary format actually does solve
the problems discussed. Namely timestamps and also autoincrement. What
exactly happens if an insert doesn't provide a value for an autoinc or
timestamp column? Is the server chosen value placed into the binlog when
using row format or not?

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 Scott Marlowe 2006-07-11 17:08:47 Re: pgsql vs mysql
Previous Message Tom Lane 2006-07-11 17:03:47 Re: encoding bug or feature?

Browse pgsql-www by date

  From Date Subject
Next Message Joshua D. Drake 2006-07-12 20:17:37 Mailing lists again
Previous Message Scott Marlowe 2006-07-11 15:57:19 Re: Notes on converting from MySQL 5.0.x to PostgreSQL