New DBI version 1.30 incorporates a new functionality, still experimental, called, $dbh->column_info (check perldoc DBI documentation for the correct syntax), where you can know the size of the column as well as the type. However, I have not used it yet, so I do not know exactly how it works. Just note that this is still experimental and it might not work under pgaccess.