Greenish yellow discharge during pregnancy can be a sign of infection, such as bacterial vaginosis or a sexually transmitted infection. It is important to consult with your healthcare provider to determine the exact cause and receive appropriate treatment. They may perform tests, such as a vaginal swab, to identify the specific infection. Treatment options may include antibiotics or antifungal medications, depending on the diagnosis. It is crucial to seek medical attention promptly to prevent any potential complications and ensure a healthy pregnancy.