Petrie, William, active 1803-1805, Governor of Madras (1807)