Re: format_type infelicity

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: format_type infelicity
Date: 2001-11-19 14:40:01
Message-ID: Pine.LNX.4.30.0111191503070.612-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane writes:

> I think an appropriate fix would be to make the format_type function
> distinguish between format_type(typeoid, -1) and format_type(typeoid,
> NULL), which it currently treats the same. The former could be taken
> to mean "give me the type name for a column with typmod -1" whereas
> the latter could be taken to mean "give me a type name in a context
> where there is no typmod", such as a function argument/result type.

This was the idea, but until recently there was no actual need for
printing something different.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-11-19 15:45:18 Re: OCTET_LENGTH is wrong
Previous Message Peter Eisentraut 2001-11-19 14:39:52 Re: beta3