Thread

  1. Re: inet/cidr type comparisons

    Jim Mercer <jim@reptiles.org> — 2001-06-11T20:44:12Z

    On Mon, Jun 11, 2001 at 02:33:12PM -0400, Tom Lane wrote:
    > Jim Mercer <jim@reptiles.org> writes:
    > > while you are in there, can you cahnge the print functions so that they
    > > are consistent?
    > 
    > I believe they are consistent in 7.1; leastwise, you will have to make
    > a pretty good argument why we should change them again.  We had a very
    > long discussion that led up to the current solution.
    
    ah, it appears that this was done, thanx very much.
    
    PostgreSQL 7.0.3 on i386-unknown-freebsdelf4.2, compiled by gcc 2.95.2
    reptiles=> select '216.95.252/24'::cidr, '216.95.252/24'::inet;
    ---------------+-----------------
     216.95.252/24 | 216.95.252.0/24
    
    PostgreSQL 7.1.2 on i386-unknown-freebsd4.3, compiled by GCC 2.95.3
    amphibians=# select '216.95.252/24'::cidr, '216.95.252/24'::inet;
    -----------------+-----------------
     216.95.252.0/24 | 216.95.252.0/24
    
    -- 
    [ Jim Mercer        jim@reptiles.org         +1 416 410-5633 ]
    [ Now with more and longer words for your reading enjoyment. ]