Initial version from Gabriel Bordeaux
http://www.gab.lc/scripts/php_my2pg.php
Added more data types to conversion
Added support for binary data