Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sVw27-00COmh-DD for pgsql-bugs@arkaria.postgresql.org; Mon, 22 Jul 2024 16:37:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sVw25-0047Wg-Ek for pgsql-bugs@arkaria.postgresql.org; Mon, 22 Jul 2024 16:37:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sVw25-0047WY-5U for pgsql-bugs@lists.postgresql.org; Mon, 22 Jul 2024 16:37:05 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sVw22-000uhl-60 for pgsql-bugs@lists.postgresql.org; Mon, 22 Jul 2024 16:37:04 +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 46MGavjL895685; Mon, 22 Jul 2024 12:36:57 -0400 From: Tom Lane To: git@j12t.org cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18549: Support ipv6 link-local addresses in the inet type In-reply-to: <18549-adf203ad53c1dae3@postgresql.org> References: <18549-adf203ad53c1dae3@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Mon, 22 Jul 2024 16:07:56 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <895683.1721666217.1@sss.pgh.pa.us> Date: Mon, 22 Jul 2024 12:36:57 -0400 Message-ID: <895684.1721666217@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > One of the variations of ipv6 addresses is link-local addresses. It would be > nice if they could be stored in an inet column. > Example: fe80::249a:57ff:fed6:695f%host0/128 . Note the %host0 This has been discussed in the past. One problem is that there is no cross-platform standardization of what the name following % can be. So we couldn't do much better than accepting it on faith and storing it as a string, which is not very nice. It's also very unclear how such a marker should affect the semantics of inet operators and functions. Maybe someday somebody will get motivated to try to surmount those problems, but don't hold your breath. regards, tom lane