title: Django What if I want to save data as the smallest type(like 1byte tinyint in mysql) with postgresql?
body: <p>Good morning everyone(in Local time)</p>
  
  <p>I am working with Django in Starbucks. I faced one problem and I couldn't get idea to solve it.</p>
  
  <p>I am going to save data(integer type) which has range between 0~4. data is not bigger than 255 at most. When I read a manual of Django, there is SmallIntegerField which is 4 byte integer. Well, When I searched a manual of PostgreSQL, there was smallint type which is 2 byte. </p>
  
  <p>But actually, my data is just less then 1byte. So I wanted to use tinyint type which has range between 0 and 255.(When I used MySQL with php, I used tinyint) I feel like its wasting if i store that small data with 4byte intergertype.</p>
  
  <p>I want to show statue of something.
  for example, 0 is no toilet. 1 is toilet exist for handicapped people, 2 is toilet exist but not for handicapped people. If I need to have more than 3 options, I can't cover it with BooleanType. (I ran into article which says BooleanType in Django is Tinyint. I couldn't find explanation in Django manual(version 1.10) and I couldn't also find that PostgreSQL has tinyint type.</p>
  
  <p>How can I solve this problem?
  I wouldn't care much if I just save a few data. but I am going to save a lot of data. It doesn't seem good idea to save data which is very small with 4byte integer type at all.</p>
  
  <p>Thanks for reading this. I will appreciate if you have any idea for it and give me any advice. Thanks you! I drank my coffee all~</p>