remove obsolete pg functions