Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
10.2.1.6
-
None
-
Normal
-
Repro attached
Description
When user specifies a constraint name in optimizer overrides for a query, the runtime statistics info on that query shows the backing index name rather than the constraint name. eg
create table prim ( i int not null primary key, j int);
create table sec (i int, constraint fk foreign key references prim, j int);
select * from sec --derby-properties constraint=fk
;
...........................................
optimizer estimated cost: 136.34
User supplied optimizer overrides on SEC are
{ index=SQL060131012414010} <=========
Index Scan ResultSet for SEC using constraint FK at read committed isolation level using instantaneous share row locking chosen by the optimizer
Number of opens = 1