D

The greater palatine foramen lies on the posterolateral hard palate just medial to the maxillary third molar, at the suture between the maxilla and the horizontal plate of the palatine bone, matching the location described in the question [Chrcanovic & Custódio, 2010, PMID 20339241].