title: postgres - bigint out of range error, which datatype to use for very large numbers
body: <p>I am trying to store some hashes (originally in hexadecimal) but I cast them to int to save in pgsql but get </p>
  
  <pre><code>select 12347933502038296527::bigint
  
  ERROR:  bigint out of range
  ********** Error **********
  ERROR: bigint out of range
  SQL state: 22003
  </code></pre>
  
  <p>I realize the number is too large for <code>int8</code>type, what data type should I be using instead of int8? would <code>decimal</code> work for my case? any other strategy that would work to save such large numbers?</p>