Re: Interval formats in select and dump - Mailing list pgsql-general

From Tom Lane
Subject Re: Interval formats in select and dump
Date
Msg-id 19041.1005457197@sss.pgh.pa.us
Whole thread Raw
In response to Interval formats in select and dump  ("Gurunandan R. Bhat" <grbhat@exocore.com>)
List pgsql-general
"Gurunandan R. Bhat" <grbhat@exocore.com> writes:
>     Whenever I dump tables with an interval field which is zero,
> pg_dump writes it as "@ 0" rather than "@ 0 hours" (which is the case with
> intervals whose values are not zero). When this happens, the restore
> always dies with a format error.

This seems to be fixed in current sources (7.2beta).  '@ 0' should be
legal input, and is accepted now.

>     IAC, is there some way of excluding the "@" in the interval field
> in the output of a select statement?

Don't use Postgres datestyle?

            regards, tom lane

pgsql-general by date:

Previous
From: "Gurunandan R. Bhat"
Date:
Subject: Interval formats in select and dump
Next
From: "arguile"
Date:
Subject: Re: Interval formats in select and dump