dbTalk Databases Forums  

PgSQL MVCC vs MySQL InnoDB

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss PgSQL MVCC vs MySQL InnoDB in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
nd02tsk@student.hig.se
 
Posts: n/a

Default PgSQL MVCC vs MySQL InnoDB - 10-25-2004 , 10:53 AM






Hello

Harrison Fisk from MySQL claims in this thread:

http://forums.mysql.com/read.php?35,3981,4245#msg-4245

That there are no major differences between InnoDB and MVCC concurrency.

Is this true?

Thank you.

Tim


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
  #2  
Old   
Jan Wieck
 
Posts: n/a

Default Re: PgSQL MVCC vs MySQL InnoDB - 10-25-2004 , 12:15 PM






On 10/25/2004 11:53 AM, nd02tsk (AT) student (DOT) hig.se wrote:

Quote:
Hello

Harrison Fisk from MySQL claims in this thread:

http://forums.mysql.com/read.php?35,3981,4245#msg-4245

That there are no major differences between InnoDB and MVCC concurrency.

Is this true?
From a functional point of view, the two appear to do the same thing.
The implementation is certainly different and has pros and cons into
both directions. The statement is absolutely accurate and also explains
why Postgres never had any sort of file structure repair tools. I would
even go further in that you don't want to repair any corrupted files, as
those repair operations might introduce breakage of referential
integrity of your data.


Jan

Quote:
Thank you.

Tim


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

--
#================================================= =====================#
# 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 #

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



Reply With Quote
  #3  
Old   
Andrew Sullivan
 
Posts: n/a

Default Re: PgSQL MVCC vs MySQL InnoDB - 10-25-2004 , 01:42 PM



On Mon, Oct 25, 2004 at 01:15:33PM -0400, Jan Wieck wrote:
Quote:
On 10/25/2004 11:53 AM, nd02tsk (AT) student (DOT) hig.se wrote:

Is this true?

From a functional point of view, the two appear to do the same thing.
Well, except for one difference. InnoDB will allow you refer to
tables not controlled by the InnoDB table handler, whereas we don't
have that problem with MVCC. So under MVCC, by definition, you can't
have partial transaction failures. (Or, more precisely, any such
partial failure is a bug in PostgreSQL, but in MySQL it might be a
feature.)

A

--
Andrew Sullivan | ajs (AT) crankycanuck (DOT) ca
In the future this spectacle of the middle classes shocking the avant-
garde will probably become the textbook definition of Postmodernism.
--Brad Holland

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster



Reply With Quote
  #4  
Old   
Jan Wieck
 
Posts: n/a

Default Re: PgSQL MVCC vs MySQL InnoDB - 10-25-2004 , 02:45 PM



On 10/25/2004 2:42 PM, Andrew Sullivan wrote:

Quote:
On Mon, Oct 25, 2004 at 01:15:33PM -0400, Jan Wieck wrote:
On 10/25/2004 11:53 AM, nd02tsk (AT) student (DOT) hig.se wrote:

Is this true?

From a functional point of view, the two appear to do the same thing.

Well, except for one difference. InnoDB will allow you refer to
tables not controlled by the InnoDB table handler, whereas we don't
That is a (mis)feature of MySQL itself, not of the InnoDB storage engine
if used in a mixed table type query by MySQL. InnoDB does not control
what is done in the "upper management" with the rows it returns from a
scan. This kind of abuse is as much InnoDB's fault as it is your fault
when your quite accurate work is merge-joined with marketing material
for decision making.


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 #

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend



Reply With Quote
  #5  
Old   
Gaetano Mendola
 
Posts: n/a

Default Re: PgSQL MVCC vs MySQL InnoDB - 10-25-2004 , 04:42 PM



Andrew Sullivan wrote:
Quote:
On Mon, Oct 25, 2004 at 01:15:33PM -0400, Jan Wieck wrote:

On 10/25/2004 11:53 AM, nd02tsk (AT) student (DOT) hig.se wrote:


Is this true?

From a functional point of view, the two appear to do the same thing.


Well, except for one difference. InnoDB will allow you refer to
tables not controlled by the InnoDB table handler, whereas we don't
have that problem with MVCC.
From MySQL gotchas:

1) And the same "feature" allow also to start a transaction, mix the two
tables and have a warning only after the "rollback" about the inability
destroy the updates done on non INNODB tables.

2) Create or delete and index or alter a table will recreate the entire
table.

3) Our rollback is a O(1) operation not O(N) where N is the operations
performed during the transaction



Regards
Gaetano Mendola






Reply With Quote
  #6  
Old   
Andrew Sullivan
 
Posts: n/a

Default Re: PgSQL MVCC vs MySQL InnoDB - 10-26-2004 , 11:10 AM



On Mon, Oct 25, 2004 at 03:45:40PM -0400, Jan Wieck wrote:
Quote:
That is a (mis)feature of MySQL itself, not of the InnoDB storage engine
if used in a mixed table type query by MySQL.
Sure, but I think this difference is very far from plain in the
marketing literature promoting MySQL with InnoDB. You actually need
to understand the difference between MySQL and its storage engines to
understand why this is the case, and one can't really expect people
who are evaluating different systems to know all that sort of detail
in advance.

A

--
Andrew Sullivan | ajs (AT) crankycanuck (DOT) ca
In the future this spectacle of the middle classes shocking the avant-
garde will probably become the textbook definition of Postmodernism.
--Brad Holland

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.