incompatible return type for netmask(inet) function between 7.0.3 and 7.1 - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject incompatible return type for netmask(inet) function between 7.0.3 and 7.1
Date
Msg-id 200104241349.f3ODnie79907@hub.org
Whole thread Raw
List pgsql-bugs
Vadim Passynkov (pvi@axxent.ca) reports a bug with a severity of 4
The lower the number the more severe it is.

Short Description
incompatible return type for netmask(inet) function between 7.0.3 and 7.1

Long Description
Function netmask(inet) change return type from 7.0.3 to 7.1
In 7.0.3 return type was text, in 7.1 return type inet
Realy in 7.1 added text(inet) and of course need that
host and netmask have return type inet, but host in 7.1 still return
text.

Other problem this changes that dump code from 7.0.3 incompatible
with 7.1.

Sample Code
Version 7.0.3
template1=# \df netmask
       List of functions
 Result | Function | Arguments
--------+----------+-----------
 text   | netmask  | inet
(1 row)

template1=# \df host
       List of functions
 Result | Function | Arguments
--------+----------+-----------
 text   | host     | inet
(1 row)

Version 7.1
template1=# \df netmask
       List of functions
 Result | Function | Arguments
--------+----------+-----------
 inet   | netmask  | inet
(1 row)

template1=# \df host
       List of functions
 Result | Function | Arguments
--------+----------+-----------
 text   | host     | inet
(1 row)


No file was uploaded with this report

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: 7.1 Build fails with Bash and CDPATH
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: pg_regress hangs on parallel test