Use BIGSERIAL for auto incremental default IDs.#300
Conversation
|
This patch is something we use in our production imposm3-based OSM import pipeline. The tables storing relation members reached the limit of max integer used for For more information: https://phabricator.wikimedia.org/T389462 |
|
Error that we got in Postgres: Table specs: |
|
Relation members are a special case, as all members are re-inserted when the relation or any relation member is changed. The following should give you an idea if other tables are reaching this limit as well: I estimate a storage overhead of 1-2% when changing all IDs from SERIAL to BIGSERIAL for a "standard" OSM database used for rendering. I'm fine with this, as it makes it ready for even not-so-edge-case imports in the longer future. |
No description provided.