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 1vDkrS-00F6O5-Vk for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Oct 2025 14:39:46 +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 1vDkrQ-00DNQO-Sv for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Oct 2025 14:39:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vDkrQ-00DNQE-EL for pgsql-hackers@lists.postgresql.org; Tue, 28 Oct 2025 14:39:43 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vDkrM-004Dnq-2v for pgsql-hackers@postgresql.org; Tue, 28 Oct 2025 14:39:42 +0000 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-59310014b8eso1006093e87.3 for ; Tue, 28 Oct 2025 07:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeltef.nl; s=google; t=1761662377; x=1762267177; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=b7MgRNjGhgJR7P9Kz8D9UJEIRiCE5ZOWeUrXcmk3yU8=; b=GjalzsyrtZhEw6cBCRSpfxmq4ZwKKj+0az9eC5PhvDyJReWGGESGjU7fAX4e0KnWWt fIuwtmrPN71Ga3ivKZ37sdmbiLH/b45pxeZWgvZPZmo0tOQoLeh7B5ABdUhjp8PM82ii iouATD+XMIpG5zFKQD2WmJE9UF+GWeizRPBPyX7B8/KK7vN+5ESd1YICAMnV02aQsZMs TxdezVuZpJJpcnGh0RxkJiSDdyf38ay+O7Dv3RzIY8FGj+poOl+KGR6vDY3Wp0xQDhPP xBVSht8dFwvbb9l93xdmfsJ/FmFUdnufYD0n7wQDdA+1ZBPvCLnN51FfPRDho2yy8hJI GPVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761662377; x=1762267177; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=b7MgRNjGhgJR7P9Kz8D9UJEIRiCE5ZOWeUrXcmk3yU8=; b=ZliG+s2krPhGFMTsHa9gb10aTf9Q/w6rKhgHt1Wf5vdkW5/sW5Ya21rWowgwOVAigf lsOu8A3oUoimndj5zxC6aIrCz4yEyzZ6fUCU0R6YWJg/x9YorXu0Kmiwv3khbHNe5So1 QYQ59FNwOEnbcn1tQGQxG4xVs0DQbVq1MCW361bTUBqXGzCDtjcaovU/MZmiwfh/6IC2 veNqsOz7ZAZTEfHRZC0kAu0K6LbIC/vudwiuOI0JGPAyM6SIG2FFx6LNaAGmPquP3yTp 1LSuUKMpfwwGz14qG45k11jG7WwkjlkymwEsY3PNvz5+jIRQlTddZY94e0/EtsbdOT7x Hl5Q== X-Forwarded-Encrypted: i=1; AJvYcCWoEQuQ20OD2p015uBrXOwTBRO80+nFDA88vVDEJ+U+1hb3fF2YboxEKaWKwQDm1+4oAe+o5DlTWWebCDSk@postgresql.org X-Gm-Message-State: AOJu0YzamZ4zVjqUNluZXMBQ3Wm+rch6oS+ALhqkRmyn7ocx3PaXwCJE mOPJkf3NzbTjWkvsCvoGEW5d6H1frCUIi834lV0lFjaO+6dUE+QHgBeBd47FJ2+XKbnbFQZDB2D walOFldvC8VP4TPt5dkk+1DbtNSKLiXKNrUIGMM43MQ== X-Gm-Gg: ASbGnctht+lO1Pu5ZMXX9Lw5CrdaErZZErnujojhCuP4YoNoPAvKVBOxaUWHhWml98C 1oVXQ32PEcs8azXR0523bf4kKaYmrbP34twEDiQvcSLbZJwNr0y/CDAQUo+oFWdVq9KAQMSaNYG ehdIp6xc/IEC4HmMKxgl1gtsf/5H++4ztpWJ7kFUlZYxFD5owIiodRLVwrSG1E7bo+GmYT6xfQu lzm/VY8KYWZtcfoiF/Q5Pg9PMGi/eAET5Pkbx9GUAAv0fDwup/vj+BCwAw= X-Google-Smtp-Source: AGHT+IGQnrt7qEiBpUKq6rMD718MVf9oDXHWG+vdEgx57cxJGR/3nFJ5godMiwEDRQxgx6ChNWhh+O+yRHRnGXl2pdE= X-Received: by 2002:a05:6512:31cf:b0:592:f7cf:9f6f with SMTP id 2adb3069b0e04-5930e99b8f9mr1741722e87.14.1761662377300; Tue, 28 Oct 2025 07:39:37 -0700 (PDT) MIME-Version: 1.0 References: <1791665551.452444.1761209220211.ref@mail.yahoo.com> <1791665551.452444.1761209220211@mail.yahoo.com> <18022523-0F8F-4C07-AFF5-57DC9086D78E@yandex-team.ru> <1895971769.8343.1761240853939@mail.yahoo.com> <574624399.175025.1761290201491@mail.yahoo.com> <953203149.383019.1761345585325@mail.yahoo.com> <6F76FA61-E2DC-44EF-9504-889D9BDB4EBD@yandex-team.ru> <1154454839.957923.1761604611424@mail.yahoo.com> <1543828736.1122782.1761661734535@mail.yahoo.com> In-Reply-To: <1543828736.1122782.1761661734535@mail.yahoo.com> From: Jelte Fennema-Nio Date: Tue, 28 Oct 2025 15:39:26 +0100 X-Gm-Features: AWmQ_bngVC3gdpBJtjAEF5eChTTECYzgDMQ5sqb3OzE4MYzFvQC7BIYg45h6b6Q Message-ID: Subject: Re: Add uuid_to_base32hex() and base32hex_to_uuid() built-in functions To: Sergey Prokhorenko Cc: Andrey Borodin , Masahiko Sawada , pgsql-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 28 Oct 2025 at 15:29, Sergey Prokhorenko wrote: > I believe we should put the discussion about compact UUID text encoding in PostgreSQL on hold for now. I agree with respect to the dedicated encode_uuid and decode_uuid functions. But I think having postgres support base32hex in encode/decode for bytea seems like a sensible thing in any case. As well as conversion between UUID and bytea. If someone wants to create patches for that, it seems like there'd be enough support for those to get them merged.