Hi everyone, Please excuse me if this is a bad suggestion or has already been suggested but I was wondering if it might be worth doing a feature request to make it so that GeoServer can generate primary keys / indexes on database stores.
I suspect the popular view would be that it should be done on the database admin side but I wonder if you the people loading layers into GeoServer might sometime not have official database administrator roles. In theory the SQL to create an index is pretty simple and the database administrators can block the functionality by simply controlling the user account they connect with in GeoServer. My thinking is that when you do an SQL view you can select the identifier but when you load a table or view directly you can't. I wondered if it would be possible to add a similar option to the field list at the bottom of the layer creation page. I think this might help users to ensure their layers work with things like WFS 2.0 paging which I believe requires a primary key and also when interacting with QGIS which needs a primary key to work properly for both tables and views. I also think it would be good to display the primary key as text above the field list and that way it could highlight when a primary key is not detected. If people think it is a good suggestion then I will look into it more and perhaps try to have a go at mocking something up myself (although I've still struggled to find the time to get going with development). Of course I'll also do a proper feature request but I thought I'd email out first to see how bad people think the idea is? Thanks, Paul Wittle [cid:[email protected]]<https://www.dorsetcouncil.gov.uk/> Business Solutions Analyst (GIS) ICT Operations Dorset Council 01305 228473 <tel:01305%20228473%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20> dorsetcouncil.gov.uk<https://www.dorsetcouncil.gov.uk> [cid:[email protected]]<https://www.facebook.com/DorsetCouncilUK> [cid:[email protected]]<https://instagram.com/DorsetCouncilUK> [cid:[email protected]]<https://twitter.com/DorsetCouncilUK> This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. It may contain unclassified but sensitive or protectively marked material and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All traffic may be subject to recording and/or monitoring in accordance with relevant legislation. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Dorset Council. Dorset Council does not accept service of documents by fax or other electronic means. Virus checking: Whilst all reasonable steps have been taken to ensure that this electronic communication and its attachments whether encoded, encrypted or otherwise supplied are free from computer viruses, Dorset Council accepts no liability in respect of any loss, cost, damage or expense suffered as a result of accessing this message or any of its attachments. For information on how Dorset Council processes your information, please see www.dorsetcouncil.gov.uk/416433
_______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
