Join using RDB$DB_KEY produce NATURAL plan ------------------------------------------
Key: CORE-3997 URL: http://tracker.firebirdsql.org/browse/CORE-3997 Project: Firebird Core Issue Type: Bug Components: Engine Affects Versions: 2.5.1 Reporter: Dimitry Sibiryakov Priority: Minor Following script shows plan JOIN (T_KEY NATURAL, T NATURAL) instead of JOIN (T_KEY NATURAL, T INDEX()) create table t (f integer); create table t_key (k char(8) character set octets); commit; set term ^; execute block as declare variable i integer=100000; begin While (i>0) do begin insert into t values (:i); i = i-1; end end^ set term ;^ commit; insert into t_key select rdb$db_key from t where f=1; commit; set plan on; select f from t join t_key on t.rdb$db_key=t_key.k; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel