Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PLAN heavily distorted -> server crash

0 views
Skip to first unread message

Martijn Tonies

unread,
Jan 4, 2002, 5:45:34 AM1/4/02
to
Hi all,

I have this database ( see borland.public.attachments ) and when I select
from one of the views, I get distorted plans.

Here's a view examples ( select * from TOTAALPRIJSLIJST ):

(1)
é

(2)
EV_FAX

(3)
PLAN (TOTAALPRIJSLIJST PR PR1 RELATIE_TELEFOON INDEX (RDB$PRIMARY130))
PLAN (TOTAALPRIJSLIJST PR PR1 RELATIE_TELEFOON INDEX (RDB$PRIMARY130))
PLAN (TOTAALPRIJSLIJST PR PR2 L INDEX (RDB$PRIMARY130))
PLAN (TOTAALPRIJSLIJST PR PR2 A INDEX (RDB$PRIMARY130))
PLAN SORT (MERGE (SORT (TOTAALPRIJSLIJST A NATURAL)JOIN (TOTAALPRIJSLIJST PR
PR1 PR INDEX (RDB$FOREIGN158),TOTAALPRIJSLIJST PR PR1 L A INDEX
(RDB$PRIMARY166),TOTAALPRIJSLIJST PR PR1 L L INDEX
(RDB$PRIMARY8,RDB$FOREIGN4),TOTAALPRIJSLIJST PR PR1 L R INDEX
(RDB$PRIMARY4),TOTAALPRIJSLIJST PR PR1 L LAND INDEX (RDB$PRIMARY76))
PLAN (TOTAALPRIJSLIJST PR PR1 PR INDEX (RDB$FOREIGN158,RDB$FOREIGN161))
PLAN JOIN (JOIN (TOTAALPRIJSLIJST PR PR2 PR INDEX
(RDB$FOREIGN161),TOTAALPRIJSLIJST PR PR2 A INDEX
(RDB$PRIMARY51)),TOTAALPRIJSLIJST PR PR2 AK INDEX (RDB$PRIMARY66))
PLAN JOIN (JOIN (TOTAALPRIJSLIJST PR PR2 PR NATURAL,TOTAALPRIJSLIJST PR PR2
L A INDEX (RDB$PRIMARY166),TOTAALPRIJSLIJST PR PR2 L L INDEX
(RDB$PRIMARY8,RDB$FOREIGN4),TOTAALPRIJSLIJST PR PR2 L R INDEX
(RDB$PRIMARY4),TOTAALPRIJSLIJST PR PR2 L LAND INDEX
(RDB$PRIMARY76),TOTAALPRIJSLIJST PR PR2 A INDEX
(RDB$PRIMARY51)),TOTAALPRIJSLIJST PR PR2 AK INDEX (RDB$PRIMARY66))
PLAN NATURAL))

(4)
PLAN (TOTAALPRIJSLIJST PR PR1 RELATIE_TELEFOON INDEX (RDB$PRIMARY130))
PLAN (TOTAALPRIJSLIJST PR PR1 RELATIE_TELEFOON INDEX (RDB$PRIMARY130))
PLAN (TOTAALPRIJSLIJST PR PR2 L INDEX (RDB$PRIMARY130))
PLAN (TOTAALPRIJSLIJST PR PR2 A INDEX (RDB$PRIMARY130))
PLAN SORT (MERGE (SORT (TOTAALPRIJSLIJST A NATURAL)JOIN (TOTAALPRIJSLIJST PR
PR1 PR INDEX (RDB$FOREIGN158),TOTAALPRIJSLIJST PR PR1 L A INDEX
(RDB$PRIMARY166),TOTAALPRIJSLIJST PR PR1 L L INDEX
(RDB$PRIMARY8,RDB$FOREIGN4),TOTAALPRIJSLIJST PR PR1 L R INDEX
(RDB$PRIMARY4),TOTAALPRIJSLIJST PR PR1 L LAND INDEX (RDB$PRIMARY76))
PLAN (TOTAALPRIJSLIJST PR PR1 PR INDEX (RDB$FOREIGN158,RDB$FOREIGN161))
PLAN JOIN (JOIN (TOTAALPRIJSLIJST PR PR2 PR INDEX
(RDB$FOREIGN161),TOTAALPRIJSLIJST PR PR2 A INDEX
(RDB$PRIMARY51)),TOTAALPRIJSLIJST PR PR2 AK INDEX (RDB$PRIMARY66))
PLAN JOIN (JOIN (TOTAALPRIJSLIJST PR PR2 PR NATURAL,TOTAALPRIJSLIJST PR PR2
L A INDEX (RDB$PRIMARY166),TOTAALPRIJSLIJST PR PR2 L L INDEX
(RDB$PRIMARY8,RDB$FOREIGN4),TOTAALPRIJSLIJST PR PR2 L R INDEX
(RDB$PRIMARY4),TOTAALPRIJSLIJST PR PR2 L LAND INDEX
(RDB$PRIMARY76),TOTAALPRIJSLIJST PR PR2 A INDEX
(RDB$PRIMARY51)),TOTAALPRIJSLIJST PR PR2 AK INDEX (RDB$PRIMARY66))
PLAN ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ¨ U ¨ U ° U ° U


As you can see, something is wrong with memory here -- please take time to
download the backup. It's a DDL only backup, restoring it and running the
above query (with ORDER BY if you like) results in plans like above. The
same happens for IB 6.5...

--
Martijn Tonies
Upscene Productions

InterBase Workbench - The Developer Tool for InterBase
http://www.interbaseworkbench.com

"Experience is what you get when you didn't get what you wanted"

Aaron Ruddick[Borland]

unread,
Jan 4, 2002, 1:28:38 PM1/4/02
to
> PLAN ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ¨ U ¨ U ° U ° U

>
> As you can see, something is wrong with memory here -- please take time to
> download the backup. It's a DDL only backup, restoring it and running the
> above query (with ORDER BY if you like) results in plans like above. The
> same happens for IB 6.5...
>

Great test case Martijn. I can reproduce the problem.

We will log it as a bug and have r&d take a look.


--
Thank you,
Aaron Ruddick
InterBase QA
http://www.borland.com/interbase


Martijn Tonies

unread,
Jan 4, 2002, 1:42:28 PM1/4/02
to
Hi Aaron,

when other thing I forgot to mention, Firebird RC2 doesn't suffer from this
problem and the PLAN buffer is 2048 bytes.

Thanks,

Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
http://www.interbaseworkbench.com

Upscene Productions
http://www.upscene.com

"This is an object-oriented system.
If we change anything, the users object."


"Aaron Ruddick[Borland]" <arud...@borland.com> wrote in message
news:3C35F456...@borland.com...

Aaron Ruddick[Borland]

unread,
Jan 4, 2002, 4:37:49 PM1/4/02
to
> when other thing I forgot to mention, Firebird RC2 doesn't suffer from this
> problem and the PLAN buffer is 2048 bytes.
>

Thank you,

We'll have to see what they are doing different.

0 new messages