title: choosing between arrays, json and hstore datatypes in postgres and rails
body: <p>I have some fields that are related to other fields and I think to put it in one database column will be much cleaner.</p>
  
  <p>For example lets say I have these fields:
  <code>parking_available:boolean</code> <code>paid_parking:boolean</code> <code>free_parking:boolean</code> <code>parking_price:integer</code> and <code>reservation_required:boolean</code></p>
  
  <p>So if I use <code>arrays</code>,<code>json</code> or <code>hstore</code> then I may <code>store</code> and <code>fetch</code> the values for above parameters in order as strings without considering the datatypes. But I am confused on which one is better here or stick with the individual database fields. Could someone explain the use cases for <code>arrays</code>,<code>json</code> and <code>hstore</code> and performace benefits of these?</p>