firebird icon indicating copy to clipboard operation
firebird copied to clipboard

Allow foreign key to use an existing index

Open WarmBooter opened this issue 3 years ago • 1 comments

If you have a PK field that is also a FK field, you end up with two identical indexes. It would be nice to extend the creation of a foreign key to identify and use possible existing indexes instead of creating a new identical one.

WarmBooter avatar Aug 12 '22 12:08 WarmBooter

During implementation, ensure it's possible to drop the primary key (PK), even if a foreign key (FK) relies on its index.

livius2 avatar Aug 01 '25 21:08 livius2