Padding zeros to the left in postgreSQL

https://stackoverflow.com/questions/26379446/padding-zeros-to-the-left-in-postgresql