<a href="http:&#x2F;&#x2F;instagram-engineering.tumblr.com&#x2F;post&#x2F;10853187575&#x2F;sharding-ids-at-instagram" rel="nofollow">http:&#x2F;&#x2F;instagram-engineering.tumblr.com&#x2F;post&#x2F;10853187575&#x2F;sha...</a> it certainly can be done with postgres, but isn&#x27;t as simple.