Skip to content

Rename pgInt4 and pgInt8 #80

@bergmark

Description

@bergmark

Most pg* functions are named after the haskell type e.g. pgTimeOfDay, but there's pgInt4 and pgInt8 which have postgres names, and "The type names int2, int4, and int8 are extensions, which are also used by some other SQL database systems."

Haskell's Int isn't guaranteed to fit in an int4, only on 32bit systems? For me Int and Int64 are the same.

So I think it would make more sense to have pgInt and pgInt64 instead since 64bit users can't safely map Int to int4.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions