Esteban Loaiza -- accused of possessing over 40 lbs. of coke -- was sprung from county jail in San Diego ... but he ain't goin' home, 'cause the ex-MLB star was moved to a federal jail.
Loaiza -- a 2x MLB All-Star who played 14 seasons in the big leagues -- has been behind bars at San Diego County Jail since being arrested February 9 on multiple felony drug charges.
After consulting with federal prosecutors, the San Diego D.A.'s office tells us they decided to drop all charges against the former White Sox pitcher, so he could instead be charged federally.