Postgres Long Datatype

Oh, that way round… I thought the DB schema was provided by a third party and now the OP can’t insert their own values…

Edit

Basically I see 5 possibilities for you (random order):

  • Clamp the value that it fits your database
  • Modulo the value such that it fits your database
  • drop the value
  • Tell the third party to provide valid data
  • Change your database schema to fit the given values.