Thread: Re: Triggers, Stored Procedures, PHP. was: Re: PostgreSQL Advocacy, Thoughts and Comments

Quoted as gospel by various people:
>> MySQL cannot even handle sub-queries yet.

> BTW, is that really still true?  I thought they had at least some
> support for subqueries by now.

yes sub queries in 4.1 which is still alpha



Re: Triggers, Stored Procedures, PHP. was: Re: PostgreSQL

From
Bruce Momjian
Date:
Jason Tesser wrote:
>
> Quoted as gospel by various people:
> >> MySQL cannot even handle sub-queries yet.
>
> > BTW, is that really still true?  I thought they had at least some
> > support for subqueries by now.
>
> yes sub queries in 4.1 which is still alpha

Wow, they have subqueries in alpha.  Guys, we better get going!  :-)

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

Re: Triggers, Stored Procedures, PHP. was: Re: PostgreSQL

From
Jan Wieck
Date:
Jason Tesser wrote:

> Quoted as gospel by various people:
>>> MySQL cannot even handle sub-queries yet.
>
>> BTW, is that really still true?  I thought they had at least some
>> support for subqueries by now.
>
> yes sub queries in 4.1 which is still alpha

"yes sub queries" is IMHO as precise as "yes foreign keys" ... look,
they have foreign key support, but do they have DEFERRED, ON DELETE SET
NULL, ON UPDATE CASCADE, all the stuff that makes it complete?


Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


Re: Triggers, Stored Procedures, PHP. was: Re: PostgreSQL

From
"scott.marlowe"
Date:
On Mon, 1 Dec 2003, Jan Wieck wrote:

> Jason Tesser wrote:
>
> > Quoted as gospel by various people:
> >>> MySQL cannot even handle sub-queries yet.
> >
> >> BTW, is that really still true?  I thought they had at least some
> >> support for subqueries by now.
> >
> > yes sub queries in 4.1 which is still alpha
>
> "yes sub queries" is IMHO as precise as "yes foreign keys" ... look,
> they have foreign key support, but do they have DEFERRED, ON DELETE SET
> NULL, ON UPDATE CASCADE, all the stuff that makes it complete?

They're working on those things, but as usual, MySQL got the big things
mostly right, and the little things horribly wrong.  If you create a
table with type=innodb on a database server that isn't compiled to support
innodb tables, it will silently fail, and silenly allow you to build
non-existent foreign keys.

sorry, but until MySQL treats errors and their reporting with such a la de
da attitude, I won't trust it.


Re: Triggers, Stored Procedures, PHP. was: Re: PostgreSQL

From
Jan Wieck
Date:
scott.marlowe wrote:

> On Mon, 1 Dec 2003, Jan Wieck wrote:
>
>> Jason Tesser wrote:
>>
>> > Quoted as gospel by various people:
>> >>> MySQL cannot even handle sub-queries yet.
>> >
>> >> BTW, is that really still true?  I thought they had at least some
>> >> support for subqueries by now.
>> >
>> > yes sub queries in 4.1 which is still alpha
>>
>> "yes sub queries" is IMHO as precise as "yes foreign keys" ... look,
>> they have foreign key support, but do they have DEFERRED, ON DELETE SET
>> NULL, ON UPDATE CASCADE, all the stuff that makes it complete?
>
> They're working on those things, but as usual, MySQL got the big things
> mostly right, and the little things horribly wrong.  If you create a
> table with type=innodb on a database server that isn't compiled to support
> innodb tables, it will silently fail, and silenly allow you to build
> non-existent foreign keys.

Wasn't able to find any of their plans for match-types or deferrability.

>
> sorry, but until MySQL treats errors and their reporting with such a la de
> da attitude, I won't trust it.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>       joining column's datatypes do not match


--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


Re: Triggers, Stored Procedures, PHP. was: Re: PostgreSQL

From
"scott.marlowe"
Date:
On Tue, 2 Dec 2003, Jan Wieck wrote:

> scott.marlowe wrote:
>
> > On Mon, 1 Dec 2003, Jan Wieck wrote:
> >
> >> Jason Tesser wrote:
> >>
> >> > Quoted as gospel by various people:
> >> >>> MySQL cannot even handle sub-queries yet.
> >> >
> >> >> BTW, is that really still true?  I thought they had at least some
> >> >> support for subqueries by now.
> >> >
> >> > yes sub queries in 4.1 which is still alpha
> >>
> >> "yes sub queries" is IMHO as precise as "yes foreign keys" ... look,
> >> they have foreign key support, but do they have DEFERRED, ON DELETE SET
> >> NULL, ON UPDATE CASCADE, all the stuff that makes it complete?
> >
> > They're working on those things, but as usual, MySQL got the big things
> > mostly right, and the little things horribly wrong.  If you create a
> > table with type=innodb on a database server that isn't compiled to support
> > innodb tables, it will silently fail, and silenly allow you to build
> > non-existent foreign keys.
>
> Wasn't able to find any of their plans for match-types or deferrability.

Sorry, I wasn't disagreeing with you, I was adding to your point.  I.e.
besides not being deferrable or cascading, mysql lets you declare fks
relations that aren't actually there and throws no error.  I have read on
their mailing lists though that they are "working the problem," but MySQL
tends to be developed not in public, near as I can tell.


Re: Triggers, Stored Procedures, PHP. was: Re: PostgreSQL

From
Jan Wieck
Date:
scott.marlowe wrote:
> On Tue, 2 Dec 2003, Jan Wieck wrote:
>
>> scott.marlowe wrote:
>>
>> > On Mon, 1 Dec 2003, Jan Wieck wrote:
>> >
>> >> Jason Tesser wrote:
>> >>
>> >> > Quoted as gospel by various people:
>> >> >>> MySQL cannot even handle sub-queries yet.
>> >> >
>> >> >> BTW, is that really still true?  I thought they had at least some
>> >> >> support for subqueries by now.
>> >> >
>> >> > yes sub queries in 4.1 which is still alpha
>> >>
>> >> "yes sub queries" is IMHO as precise as "yes foreign keys" ... look,
>> >> they have foreign key support, but do they have DEFERRED, ON DELETE SET
>> >> NULL, ON UPDATE CASCADE, all the stuff that makes it complete?
>> >
>> > They're working on those things, but as usual, MySQL got the big things
>> > mostly right, and the little things horribly wrong.  If you create a
>> > table with type=innodb on a database server that isn't compiled to support
>> > innodb tables, it will silently fail, and silenly allow you to build
>> > non-existent foreign keys.
>>
>> Wasn't able to find any of their plans for match-types or deferrability.
>
> Sorry, I wasn't disagreeing with you, I was adding to your point.  I.e.
> besides not being deferrable or cascading, mysql lets you declare fks
> relations that aren't actually there and throws no error.  I have read on
> their mailing lists though that they are "working the problem," but MySQL
> tends to be developed not in public, near as I can tell.

You don't have to disagree with me, I can have arguments with myself
over nothing.

They seem to have cascading, with some limitations. If one for example
has a self reference (like in a tree structure the reference to the
parent node in the same table), their manual says that ON UPDATE CASCADE
is treated as RESTRICT at some point to prevent infinite loops ... don't
know if this is caused by the same nonsense implementation that prevents
them from supporting INSERT INTO tab SELECT * FROM tab;

My conclusion still is that they add those features more for buzzword
marketing than for usability. Otherwise they would do them right.


Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #


Re: Triggers, Stored Procedures, PHP. was: Re: PostgreSQL

From
"Joshua D. Drake"
Date:
>
> You don't have to disagree with me, I can have arguments with myself
> over nothing.


Some would call that insanity, I call it genius.

Sincerely,

Joshua D. Drake


--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC - S/JDBC
Postgresql support, programming, shared hosting and dedicated hosting.
+1-503-222-2783 - jd@commandprompt.com - http://www.commandprompt.com