I have not watched that video since 2013 (wow!) and it is still hilarious.
they obviously didn't use vanilla postgres, but built some custom sharding on top, which is untrivial task (implementation and maintenance(resharding, failover, replication, etc)).