UCL-ShippingGroup / pyrate

Python AIS Tools Environment
MIT License
25 stars 10 forks source link

Permit tables to extend beyond 2,147,483,647 rows #40

Closed vprakash-ucl closed 8 years ago

vprakash-ucl commented 8 years ago

The id column used as the primary key for ais_clean (and other tables) is set to "serial" when the table is created, meaning that the maximum number it can reach is 2,147,483,647 because it follows the limit of the integer data type (https://www.postgresql.org/docs/9.1/static/datatype-numeric.html).

This should be changed to "bigserial," otherwise an "integer out of range" error will be raised when trying to insert rows beyond this limit.