topogeo_AddPolygon get rid of DISTINCT
|Reported by:||robe||Owned by:||strk|
I noticed that topogeo_AddPolygon has a DISTINCT
'SELECT DISTINCT f.face_id FROM ' || quote_ident(atopology) || '.face f WHERE f.mbr && ' || quote_literal(apoly::text) || '::geometry';
Which seems totally pointless given that face_id is the primary key of face. I'm sure PostgreSQL is probably smart enough to figure it doesn't need to but it shouldn't be bothered.
Am I missing something?