Re: Interval formats in select and dump

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Gurunandan R(dot) Bhat" <grbhat(at)exocore(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Interval formats in select and dump
Date: 2001-11-11 05:39:57
Message-ID: 19041.1005457197@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Gurunandan R. Bhat" <grbhat(at)exocore(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message arguile 2001-11-11 05:58:33 Re: Interval formats in select and dump
Previous Message Gurunandan R. Bhat 2001-11-11 05:03:58 Interval formats in select and dump