Re: Bug #670: netmask displayed for a /32

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: edwin(at)mavetju(dot)org, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug #670: netmask displayed for a /32
Date: 2002-05-21 14:12:20
Message-ID: 20403.1021990340@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

pgsql-bugs(at)postgresql(dot)org writes:
> But the /y portion is shown in this case:
> pmoanalysis=> select ipaddress||'a' from dhcpservers;
> ?column?
> -------------
> 1.2.3.4/32a
> (1 row)

This implicitly coerces the inet value to text datatype, and the
text(inet) function always displays netmask. Perhaps you'd prefer
to use host() or abbrev() to do the conversion to text.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2002-05-21 14:19:35 Re: pg_dump && aggregate bug
Previous Message Mathieu Arnold 2002-05-21 12:13:55 pg_dump && aggregate bug