> ST_IsValid is a relatively expensive operation, so be careful with that. > If you are using it a lot, it might be worthfile to just delete invalid > geometries once. I've measured the speed difference at about 8X to use ST_IsValid .