Re: [GENERAL] inet and cidr type problems

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Jim Mercer <jim(at)reptiles(dot)org>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] inet and cidr type problems
Date: 1999-07-07 02:06:27
Message-ID: 199907070206.WAA29919@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

> i have been playing with the inet and cidr types, and i have noticed a couple
> problems, and would entertain suggestions as to how to fix them without
> necessarily breaking how other people might be using them.
>
> - a table with an element of type inet, will show "0.0.0.0/0" as "00/0"

This was fixed in 6.5.

> i suspect this can be fixed in src/backend/adt/network.c or some such.
>
> - when creating a table with either type inet or type cidr as a primary, unique
> key, the elements "198.68.123.0/24" and "198.68.123.0/27" are considered
> equal.

This has been addressed in 6.5 too.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 1999-07-07 02:17:50 Re: [HACKERS] RE: [GENERAL] Transaction logging
Previous Message Doo Suk Yang 1999-07-07 00:40:56 Re: [GENERAL] crypt in RH 6.0

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-07-07 02:17:50 Re: [HACKERS] RE: [GENERAL] Transaction logging
Previous Message Bruce Momjian 1999-07-07 02:03:19 Re: [HACKERS] copyObject() ? again