Re: [GENERAL] Bug? Netmask of CIDR as TEXT has trailing masklen - Mailing list pgsql-general

From Tom Lane
Subject Re: [GENERAL] Bug? Netmask of CIDR as TEXT has trailing masklen
Date
Msg-id 12363.1482512657@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] Bug? Netmask of CIDR as TEXT has trailing masklen  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
nomad@null.net writes:
> Ah, I just noticed that the return value of the netmask() function is
> of type 'inet' and that is (in my mind) where the actual issue is. A
> netmask may have the same underlying form and space requirements as an
> internet address or subnet, but it isn't really the same thing.

Maybe, but we're not going to invent a whole new datatype just to
represent that.  Perhaps you would be happier using the masklen()
function.

            regards, tom lane


pgsql-general by date:

Previous
From: Chris Richards
Date:
Subject: [GENERAL] explain analyze showed improved results without changes, why?
Next
From: Edmundo Robles
Date:
Subject: Re: [GENERAL] Er Data Modeller for PostgreSQL