[Tile-serving] [osm2pgsql-dev/osm2pgsql] Optionally build id index as unique index (PR #2170)

Jochen Topf notifications at github.com
Tue Apr 9 13:23:50 UTC 2024


Specify with `create_index = 'unique'` in the `ids` field of the `define_table()` Lua function.

The user has to make sure not to insert multiple rows into such a table.

This can be useful if some program using the data has special handling for unique ids/primary keys, for instance when it needs unique ids to allow editing.
You can view, comment on, or merge this pull request online at:

  https://github.com/osm2pgsql-dev/osm2pgsql/pull/2170

-- Commit Summary --

  * Optionally build id index as unique index

-- File Changes --

    M src/flex-lua-table.cpp (3)
    M src/flex-table.cpp (3)
    M src/flex-table.hpp (13)

-- Patch Links --

https://github.com/osm2pgsql-dev/osm2pgsql/pull/2170.patch
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2170.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2170
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/pull/2170 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20240409/a229d104/attachment.htm>


More information about the Tile-serving mailing list