Postgresql Integer Size Javascript Function Call