Received: from hesiod.nhh.no (hesiod.nhh.no [158.37.96.15]) by hub.org (8.8.8/8.8.8) with ESMTP id FAA01720 for ; Wed, 7 Oct 1998 05:26:32 -0400 (EDT) (envelope-from tih@athene.nhh.no) Received: from athene.nhh.no (athene.nhh.no [158.37.96.16]) by hesiod.nhh.no (8.8.8/8.8.8) with ESMTP id LAA03508; Wed, 7 Oct 1998 11:26:21 +0200 (CEST) Received: (from tih@localhost) by athene.nhh.no (8.8.8/8.8.8) id LAA20186; Wed, 7 Oct 1998 11:26:21 +0200 (CEST) Sender: tih@nhh.no To: Bruce Momjian Cc: hackers@postgreSQL.org (PostgreSQL-development) Subject: Re: [HACKERS] Open 6.4 items References: <199810070320.XAA08123@candle.pha.pa.us> From: Tom Ivar Helbekkmo Date: 07 Oct 1998 11:26:20 +0200 In-Reply-To: Bruce Momjian's message of "Tue, 6 Oct 1998 23:20:58 -0400 (EDT)" Message-ID: <86u31gyb7n.fsf@athene.nhh.no> Lines: 28 X-Mailer: Gnus v5.6.27/Emacs 19.34 Bruce Momjian writes: > test new cidr/IP address type(Tom Helbekkmo) Looks good to me. I haven't done really heavy testing yet, and I'd also like to update the regression test -- what I included was just a very quick sequence to see that it basically worked, but we should have a more comprehensive test. No great hurry there, though: for now, I'd say it's ready for shipping, modulo the renaming of IPADDR to INET, for which I'm sending a separate patch kit. One problem though, seemingly lately introduced: It's nice to be able to input IP addresses in various formats, for compatibility with other software. One of the common formats is a network byte order hex string, like 0x12345678. Until very recently, I could check what the heck the actual address behind such a representation was, by going "select '0x12345678'::ipaddr;". This no longer works, because the system now helpfully transforms the hex into a long int or something and then tries to treat the result as an ipaddr. Uh-oh. The intuitively correct thing would be for the hex string to be read and converted as a numeric value only if the type it is being cast to is, indeed, numeric in nature. In the given case, it should be up to ipaddr_in() to make sense of the character string. Or what do you say? -tih -- Popularity is the hallmark of mediocrity. --Niles Crane, "Frasier"