Recloned from master, not sure if anything changed
changed pg_prepare statement