I need to deal with the, I suppose the big int, primary key values 1380742793415240
.
In R I can easily adjust option(scipen=100) but I need to store that data in postgres db.
I've already tried to dbWriteTable default (double precision) with result: violate constaint (probably duplicate keys in ...4e+015 representation) and also after changing target column to bigint with result: invalid input syntax for integer: "1.38074279341524e+015"
.
example: try to save and load from db following dt
sample_dt <- data.table(a = c(20130101,20130102,20130102),
b = c(1380742793415240,1380742793415241,1380742793415242))
What is the effective way of save and load this kind of data in postgres?