I need to store donation amounts in a Postgres database. If I use bigint instead of integer, does that qualify me as optimistic or wasteful of precious bytes?
-
-
Replying to @algo_luca
Any reason not to use the built-in money type? https://www.postgresql.org/docs/9.1/datatype-money.html …
1 reply 0 retweets 2 likes -
Replying to @Argorak
Postgres' community discourages it apparently https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_money …
1 reply 0 retweets 1 like -
Replying to @algo_luca
Well... is your implementation handling fractional cents?
2 replies 0 retweets 0 likes
Replying to @Argorak
Dealing only with integer multiples of the smallest figure of a currency, so I could as well use it 
2:36 PM - 5 Apr 2020
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Writing about stuff to learn how it works, mostly in Rust.
Lead Engineer at