Re: BUG #1010: format_type errors oin formatting type interval. - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1010: format_type errors oin formatting type interval.
Date
Msg-id 25870.1071647493@sss.pgh.pa.us
Whole thread Raw
In response to BUG #1010: format_type errors oin formatting type interval.  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
List pgsql-bugs
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.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

pgsql-bugs by date:

Previous
From: "PostgreSQL Bugs List"
Date:
Subject: BUG #1011: Explain analyze "query" cause segv
Next
From: Mark Shewmaker
Date:
Subject: SELECT FOR UPDATE differs inside and outside a pl/pgsql function (7.4)