Re: fairly current mysql v postgresql comparison need for - Mailing list pgsql-general

From Bruce Momjian
Subject Re: fairly current mysql v postgresql comparison need for
Date
Msg-id 200303242058.h2OKwP818902@candle.pha.pa.us
Whole thread Raw
In response to Re: fairly current mysql v postgresql comparison need for  (Mike Mascari <mascarm@mascari.com>)
Responses Re: fairly current mysql v postgresql comparison need for  (Mike Mascari <mascarm@mascari.com>)
List pgsql-general
Supposedly MySQL did add MVCC in some fashion, so I assume that's how
they would do it.

---------------------------------------------------------------------------

Mike Mascari wrote:
> Bruce Momjian wrote:
> > Our MVCC allows it because there are multiple copies of the row --- pre-dump
> > and post-dump.
>
> Exactly. However, according to the mySQL docs I see the
> mysqldump option:
>
> "--single-transaction
>
> This option issues a BEGIN SQL command before dumping data from
> server. It is mostly useful with InnoDB tables and
> READ_COMMITTED transaction isolation level, as in this mode it
> will dump the consistent state of the database at the time then
> BEGIN was issued without blocking any applications. When using
> this option you should keep in mind that only transactional
> tables will be dumped in a consistent state, e.g., any MyISAM or
> HEAP tables dumped while using this option may still change
> state. The --single-transaction option was added in version 4.0.2."
>
> They also have mysqlhotcopy which:
>
> "mysqlhotcopy is a Perl script that uses LOCK TABLES, FLUSH
> TABLES and cp or scp to quickly make a backup of a database.
> It's the fastest way to make a backup of the database or single
> tables, but it can only be run on the same machine where the
> database directories are."
>
> Again, without MVCC, I fail to see how InnoDB or BDB can perform
> a hot-backup without blocking UPDATES/DELETES until the dump is
> complete. Of course mysqlhotcopy just locks the whole database
> until the backup is complete.
>
> scott.marlowe@ihs.com also wrote:
>
>  > As long as there aren't any transactions pending while
>  > you run it.  It does have issues then.  The
>  > hotbackuptool that MySQL comes with is explicitly
>  > documented by the mysql folks as NOT working for
>  > innodb tables.
>
> Apparently --single-transaction was added in 4.0.2. It still
> doesn't resolve the underlying concurrency issues associated
> with a non-MVCC database, however.
>
> medi.montaseri@intransa.com also wrote:
>
>  > Not to diverge from the main issue, but was this a
>  > referene to a conversation between Bill Gate and
>  > Steve Jobs in "Silicon Valley Pirates" movie?
>
> Not intentionally ;-)
>
> Mike Mascari
> mascarm@mascari.com
>
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073


pgsql-general by date:

Previous
From: Arjen van der Meijden
Date:
Subject: Re: fairly current mysql v postgresql comparison need for
Next
From: Robert Treat
Date:
Subject: Re: Point in time recovery?