A day before voters in New York City head to the polls for primary day, Bill de Blasio remains on the cusp of avoiding a runoff and Eliot Spitzer is a slight underdog, according to a new poll from Quinnipiac University.

(Photo by Spencer Platt/Getty Images) (Photo by Spencer Platt/Getty Images)

The poll shows de Blasio losing a little ground in the Democratic mayoral primary, but he still leads 2009 nominee Bill Thompson 39 percent to 25 percent.

The city's current public advocate would need to pick off just 1 percent of the 8 percent who are undecided to get the 40 percent he needs to win the nomination without a two-candidate runoff.

City Council Speaker Christine Quinn is third at 18 percent, while former congressman Anthony Weiner continues to lose ground and stands at 6 percent.

In the comptroller's race, the Q poll shows Spitzer continuing to drop. After leading by double digits a couple of weeks ago, he trails Manhattan Borough President Scott Stringer 50-43.

There are just two candidates in that primary, meaning the nominee will be decided Tuesday.