Re: Devx Database Comparison [Updated]

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-advocacy(at)postgresql(dot)org
Subject: Re: Devx Database Comparison [Updated]
Date: 2005-11-16 03:41:54
Message-ID: b2b264421c40fc730e0969e71b729b1f@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Not sure exactly what the "Triggers: statement / row level" item means,
but mysql's trigger are definitely row only. Some funny stuff I found
while seeing if I had remembered that correctly below. From the official
mysql dev docs on triggers:

http://dev.mysql.com/tech-resources/articles/mysql-triggers.html

===

But remember that functions are subject to severe limitations: you cannot access tables
from within a function. So these statements are illegal inside a function:

ALTER 'CACHE INDEX' CALL COMMIT CREATE DELETE
DROP 'FLUSH PRIVILEGES' GRANT INSERT KILL
LOCK OPTIMIZE REPAIR REPLACE REVOKE
ROLLBACK SAVEPOINT 'SELECT FROM table'
'SET system variable' 'SET TRANSACTION'
SHOW 'START TRANSACTION' TRUNCATE UPDATE

Precisely the same limitation applies for triggers.

Triggers are very new. There are bugs. Therefore I give the same warning that I gave for
stored procedures. Do not try triggers with a database that has important data in it.
Instead, create a new database for testing purposes, and make sure this test database is
the default, whenever you are creating or using tables with triggers.

...

Lastly, the [older mysql] manual used to say that if you have triggers, then queries
will be slower. Forget that too, triggers have no effect on queries.

===

- --
Greg Sabino Mullane greg(at)turnstep(dot)com
PGP Key: 0x14964AC8 200511152239
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8

-----BEGIN PGP SIGNATURE-----

iD8DBQFDeqqGvJuQZxSWSsgRAikHAJ9KMrKxFd65nUCAZUTkZsVuHF+iawCgr3uv
eYhHO5qnt7K5W89SB/a6+SY=
=vTrk
-----END PGP SIGNATURE-----

In response to

Browse pgsql-advocacy by date

  From Date Subject
Next Message Mike Ellsworth 2005-11-16 15:42:15 8.1 pdf
Previous Message Robert Bernier 2005-11-16 02:22:17 Fwd: PHP Quebec Call For Speakers