Fix wrong element warnings coming from pg command