[postgis-users] FYI: Solution to Using PostGIS in ArcGIS.
sfkeller at gmail.com
Tue Nov 6 13:03:42 PST 2012
This seems to be a problem in ArcGIS since Oct 2009 Beta 10(!) 
Does anyboy know if a bug ticket has been filed at Esri?
2012/11/6 Mark Volz <MarkVolz at co.lyon.mn.us>:
> Recently I was struggling with getting PostGIS data in ArcGIS as a query layer. Apparently there is a bug in ArcGIS that treats every column in a query layer as a primary key. Here is the work around that I was given:
> Open the ArcGIS Add Query Layer window.
> Connect to your database.
> Add a query and name, usually by double clicking on the table / layer name.
> NOTE: DO NOT CLICK FINISH.
> Validate the query.
> Press "show advanced options."
> The "Finish" button will change to "Next>" Press the button.
> Press control and right click on any of the boxes under Unique Identifier Field(s). This will unselect all the columns
> Select the actual Unique Identifier Fields - usually gid when using the PostGIS Shapefile loader.
> Press Finish
> Mark Volz
> GIS Specialist
> postgis-users mailing list
> postgis-users at lists.osgeo.org
More information about the postgis-users