Re: inet/cidr type comparisons

From: Alex Pilosov <alex(at)pilosoft(dot)com>
To: Jim Mercer <jim(at)reptiles(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: inet/cidr type comparisons
Date: 2001-06-11 18:06:01
Message-ID: Pine.BSO.4.10.10106111404220.16686-100000@spider.pilosoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 11 Jun 2001, Jim Mercer wrote:

> while you are in there, can you cahnge the print functions so that they
> are consistent?
>
> the output should be 'x.x.x.x' or 'x.x.x.x/x'.
>
> in some cases, i have seen select's which output 'x.x.x/24', which totally
> defeats the purpose of classless ip addrs.
7.1 will do it correctly, please upgrade:

users=# select '10/8'::inet;
?column?
------------
10.0.0.0/8
(1 row)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message mlw 2001-06-11 18:11:06 Re: OID Wrap
Previous Message Bruce Momjian 2001-06-11 18:00:26 Re: OID Wrap