Skip to content

o.Set("extra_float_digits","3") breaks in Postgres 8.4 and earlier #199

@ghost

Description

When connecting to a PostgreSQL Version 8 database, pq connection fails with:

[reporting]: 2013/12/05 14:47:59 driver: bad connection

Diagnosis:

In PostgreSQL 8.1 the maximum value for extra_float_digits is 2. In PostgreSQL 9 the maximum was increased to 3. From the PostgreSQL Release Notes:

Allow server parameter extra_float_digits to be increased to 3 (Tom Lane)

The previous maximum extra_float_digits setting was 2. There are cases where 3 digits are needed to dump and restore float4 values exactly. pg_dump will now use the setting of 3 when dumping from a server that allows it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions