MySQL FROM_UNIXTIME and UNIX_TIMESTAMP functions in PostgreSQL

Personally I prefer PostgreSQL over MySQL DBMS. However there are some things I miss in PostgreSQL. Here is an advice on how to use MySQL FROM_UNIXTIME and UNIX_TIMESTAMP function in PostgreSQL DBMS.

What’s the average length of an email address?

This question always comes up, when you have to design new table in database to store email addresses. Is VARCHAR(30) long enough? Or maybe you should use VARCHAR(255) or maybe TEXT as I’ve seen in some projects? My live database, which I’ve used for this test contains 92298 valid email addresses, verified with the Pear [...]