Re: netmask(inet) function broken in 7.4

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Joe Sunday <sunday(at)csh(dot)rit(dot)edu>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: netmask(inet) function broken in 7.4
Date: 2003-12-15 23:28:58
Message-ID: 200312152328.hBFNSwa20750@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


This will be fixed in 7.4.1.

---------------------------------------------------------------------------

Joe Sunday wrote:
>
> ============================================================================
> POSTGRESQL BUG REPORT TEMPLATE
> ============================================================================
>
>
> Your name : Joe Sunday
> Your email address : sunday(at)csh(dot)rit(dot)edu
>
>
> System Configuration
> ---------------------
> Architecture (example: Intel Pentium) : UltraSparc II
>
> Operating System (example: Linux 2.0.26 ELF) : Solaris 9
>
> PostgreSQL version (example: PostgreSQL-7.4): PostgreSQL-7.4
>
> Compiler used (example: gcc 2.95.2) : gcc 2.95.3
>
>
> Please enter a FULL description of your problem:
> ------------------------------------------------
> After upgrading to 7.4 from 7.3.4, the behaviour of the netmask(inet) function changed,
> but the documentation still specifies the old behaviour (which seems more correct than the
> new version)
>
> Old:
> netmask( '192.168.1.0/23' ) returns '255.255.254.0'
>
> New:
> netmask( '192.168.1.0/23' ) returns '255.255.254.0/23'
>
> Please describe a way to repeat the problem. Please try to provide a
> concise reproducible example, if at all possible:
> ----------------------------------------------------------------------
>
> Perform a SELECT using the netmask function with the example above.
>
> If you know how this problem might be fixed, list the solution below:
> ---------------------------------------------------------------------
> Revert netmask to the prior behaviour, or update the documentation to match the new
> behaviour. Masklen(inet) already returns just the mask length for CIDR-style addressing,
> netmask(inet) should just return a mask without the redundant length.
>
> --
> Joe Sunday <sunday(at)csh(dot)rit(dot)edu> http://www.csh.rit.edu/~sunday/
> Computer Science House, Rochester Inst. Of Technology
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-12-16 00:10:22 Re: BUG #1008: fe-misc.c has an ifdef for HAVE_POLL, should be HAVE_POLL_H
Previous Message Tom Lane 2003-12-15 20:20:50 Re: BUG #1008: fe-misc.c has an ifdef for HAVE_POLL, should be HAVE_POLL_H