Re: BUG #1010: format_type errors oin formatting type interval.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pg(at)xarg(dot)net
Cc: "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #1010: format_type errors oin formatting type interval.
Date: 2003-12-17 07:51:33
Message-ID: 25870.1071647493@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> writes:
> head=# select pg_catalog.format_type(oid, typlen) from pg_type where typname = 'interval';
> ERROR: invalid INTERVAL typmod: 0xc

This is not a bug. format_type's second arg is typmod, not typlen.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Oli Sennhauser 2003-12-17 15:42:25 Bug in make (informix?)
Previous Message PostgreSQL Bugs List 2003-12-16 22:07:23 BUG #1011: Explain analyze "query" cause segv