I used query layer to load my layer from PostGIS and show it in ArcMap 10, I had two cases;
- if I defined the OID in the configuration of connection, there was no problem with the attribute table of the layer but my layer disappeared from the map.
- if I didn't define the OID, then the layer appeared in the map but when I try to open the attribute table of my layers the following error message occurs:
Error reading OID form table. Reading rows has been stopped. Check that the datasource is valid. OID mapped column has null value
... in the table was empty.