Skip site navigation (1) Skip section navigation (2)

Re: incompatible return type for netmask(inet) function between 7.0.3 and 7.1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pvi(at)axxent(dot)ca
Cc: Justin Clift <justin(at)postgresql(dot)org>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: incompatible return type for netmask(inet) function between 7.0.3 and 7.1
Date: 2001-04-25 16:02:32
Message-ID: 29008.988214552@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
"Vadim I. Passynkov" <pvi(at)axxent(dot)ca> writes:
> I ask now about why logical same functions host(inet) and netmask(inet)
> return different types ?

There was a *long* discussion about this last year, and we concluded
that was the right thing to do.  See the mail archives if you want the
details --- but the key point is that host() text() and abbrev() are
primarily useful to allow non-default display formatting of inet/cidr
values, so they should produce text.  If they produced another inet
value then they'd be unable to control how that value got formatted
for display.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2001-04-25 20:12:05
Subject: Re: build of PL/Perl cannot find include files.
Previous:From: asreddyDate: 2001-04-24 19:06:13
Subject: Cannot Create plpqsql function!

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group