[Tile-serving] [openstreetmap/osm2pgsql] Figure out a way to use fastupdate on indexes (#37)
Paul Norman
notifications at github.com
Fri Sep 9 22:45:41 UTC 2016
> Ideally, we'd keep the pending list small, and after an osm2pgsql command has completed, force it to process the pending list, even if it's small.
And with 9.6 we [will have a way to do this!](https://www.postgresql.org/docs/9.6/static/functions-admin.html#FUNCTIONS-ADMIN-INDEX)
My thoughts are
* Detect PostgreSQL version
* On 9.6 create GIN indexes with fastupdate on
* On 9.6 when finishing processing during updates run gin_clean_pending_list
If running on a DB created by an earlier osm2pgsql version (with fastupdate=off indexes) this would still work because gin_clean_pending_list can still be safely called.
The migration is also easy.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/37#issuecomment-246061459
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20160909/d641bbab/attachment.html>
More information about the Tile-serving
mailing list