Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oC3Ve-00060R-1m for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Jul 2022 18:24:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oC3Vc-0000MI-Fz for pgsql-bugs@arkaria.postgresql.org; Thu, 14 Jul 2022 18:24:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oC3Vc-0000M9-7a for pgsql-bugs@lists.postgresql.org; Thu, 14 Jul 2022 18:24:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oC3VZ-0005gb-6H for pgsql-bugs@lists.postgresql.org; Thu, 14 Jul 2022 18:24:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 26EIO91O2996118; Thu, 14 Jul 2022 14:24:09 -0400 From: Tom Lane To: "David G. Johnston" cc: Francisco Olarte , doekman@icloud.com, PostgreSQL mailing lists Subject: Re: BUG #17550: inet type doesn't accept alternate notations of ipv4 addresses In-reply-to: References: <17550-277c0ecd43597da9@postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Thu, 14 Jul 2022 11:02:03 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2996116.1657823049.1@sss.pgh.pa.us> Date: Thu, 14 Jul 2022 14:24:09 -0400 Message-ID: <2996117.1657823049@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > I don't see it as unreasonable to claim the lack of documentation regarding > known alternative representations that could be accepted as input is a > bug. The actual report isn't even asking for us to implement acceptance of > those formats, just make it clear when someone gets that error and checks > the docs that the error is valid. Yeah. I'm disinclined to loosen the input syntax rules, but the docs could stand improvement I think. Particularly since there are no concrete examples in https://www.postgresql.org/docs/current/datatype-net-types.html#DATATYPE-INET but there are in the following section about CIDR --- and that type *does* allow some forms of abbreviation. It would not be unreasonable to assume that INET does too. regards, tom lane