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 1rUiXs-00CdyO-4p for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Jan 2024 07:28:36 +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 1rUiXr-003G6x-8h for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Jan 2024 07:28:35 +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 1rUiXp-003G6B-TU for pgsql-hackers@lists.postgresql.org; Tue, 30 Jan 2024 07:28:34 +0000 Received: from sonic321-21.consmr.mail.gq1.yahoo.com ([98.137.66.84]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rUiXm-0046ko-FE for pgsql-hackers@postgresql.org; Tue, 30 Jan 2024 07:28:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1706599709; bh=lZ273M+ELy4InesY3kESvv0O5HZGPllNzE1BS05PY7A=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=dPSJxPbR1OG0OZfg0AxnYyWzm59fh7pgzEFmA2B0/yX/2W3g53VdB3U7DutQEO/h4BF29cp5dDjMA6wezhpK5OoJzci/y6UjR4HoUVNoor3SHmADX6Fg2P0aH5GkXsZUWRCjcnDMa7uTfXIp0M8uQQpTGVDYNtBuaBBEfvyl6GW2wflfxAEJ2/mCDYTWctDPUsWMIR4jY+8aimKxfJBZGV1vr48g29955H2T1Lq2+UiM2WzNw9ToAmVzFOekfsjCSof2gW7nCyO3k6lXQ7WiayB+lgF3Jb8EvT+q0QomCW/772Nzmy8WoCiIb+/PMFwP2pVFsUPs/ez4toCPhsXEeQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1706599709; bh=EAAhp4MGkFMC9+RlccTl8DkEj+eO0m1ZESg9dD2a5ic=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=IvbHQEl+N3sRWcJnCjJfgXVJAHubFRCqsssBeiOKRju5v2uEaBQtVEst576LWsSTDH5mqD7i93wR0ttQE4AQsBrrDp7oH8rm7zaKbd1t5RubvyfCP1yiR229JAYgLZ7lPuwEB+YUGFCSQlbh8w8RCBqe2/1bHLJUMrmMcad1n7cc3Y0MJwcnisg2kPoWl6r797hMaTEkZteaE8+zVdGofSe5qjj3ijeQNacWiZjIkjIJZP6kpmoYiYUUdPflwVRU7kBlHWbOqFq8+Sz0SRUDf0jGd+1hp12FweHqOTEQQJaKx7HZdIfcBv133mC7LXMyrGGbfitT8O/IMsV7N/Fq/A== X-YMail-OSG: rDog.Z8VM1nTR8u0nZmy6zmXuxYMB5l57xrNv0wyhxWxAK.PuVQW3q7XRU0sIuv kXhsC838qBGRkLUjWJo34CSCcc4p.kI1uRm.5jIPOcrSU3mhmwSofsXC7g63R6zq8vjykHle1N2K RJI6rv5o7PgSoEj.DTAymNJI7S8egWcrWIvmiMk7JUeGPIzdvzTOQIKJm6WYh.q1pHEOfrhJLfRA mOvMzhK0IBAVF.VcGb96jGi4Mj_AzDbe95zbYucW98nbcDhBG5b7iKX3u4e7UfuVDTx1LsgpGpkX KDczA56CE6uyC3h.O1pqf80uxDBGkf7OXQKA8BzWaKKvRI9mqVH5Q4SMkwMIKrnFgvD7tempp44S Zc9E5SJU1lQ2eRtA5Ze.bgJUQpL110FyXlPVDmxo49HhO42Y7Wqz_RpcDF8CB294rL0hPoh_9YV_ YHlUG4ljNCxfiPl4.WIuuKqjuq0M.4INVqllQBnm4YHmjmRChH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F.daRlb8_KQq.5YPdnAQC8CPA6t8 IvEat73nmVYor_WLxB5fDB2JkVqMlHBS1gBclmm8adxL5atszZNd_PMuokKd_LGoGtYfXEuaeFbT _damAJZx3xzhRW7u6hEBSBOhwKM1NwMdWgSSO6H6b4150CSDudTS.0HV727oURi6RzH4O.ZfsPsE 0N0GnKVyCVVAXeanSRp9lGzqx8NiAoYpAASxLagGQkRSbBt_nXRch9ptpu4p8n3ymeDmGlCB93Nv aI.QhIOPm587ub25ao_ygbpb7Pv5bgr77iCIVomg8dtXuBM97AeWNDlailfeiZOWOe7Yoheb8gnf znMbKK8c3aPwiCZgb.16YRwITb4hrRfnnJ_BpJgb6PpN1IRLadJo39cP8UoIIQjYvqEA3gDFv58O dxOAiCi7DEntsdxIqfV4tN7KUqvMt9Q63zPw6vwCQHtmkzwSYHnEFPTaq6zSxRRImXyPDrLdMPqz 3ruRCcvMMuYgPD.nXwIbAYnwdC_xUYf28bE.5dgFaNOnSWnn78GEi9LezBY9rN0zr8H8Mc3XPVfW njZXlAnQ3nYhwvyrQnAnf3gksN4GeTXj_8V92vZCTnnjinJjtzUyNBNSzejZCh976pcfeWQb.OUR .DgeNLAc__XeFiuQTFsJIkB.AOUfZqZZaYvxTjdUYQ6kKKUpqLmktCtykikDkurbs87rp_ikJl3Z zooJTWJIbgjsmeyImI30dfb38NroQqJdKVIhFd6JkdylDs5W1K1tUmtS1rj7seew1bLp60HWBiuV 5C_g- X-Sonic-MF: X-Sonic-ID: 9ff9d2f1-8de8-4d90-a136-3ced7b9b110d Received: from sonic.gate.mail.ne1.yahoo.com by sonic321.consmr.mail.gq1.yahoo.com with HTTP; Tue, 30 Jan 2024 07:28:29 +0000 Date: Tue, 30 Jan 2024 07:28:28 +0000 (UTC) From: Sergey Prokhorenko To: Jelte Fennema-Nio , "Andrey M. Borodin" Cc: pgsql-hackers mailing list , Aleksander Alekseev , =?UTF-8?Q?Przemys=C5=82aw_Sztoch?= , Nikolay Samokhvalov , "David G. Johnston" , Nick Babadzhanian , Mat Arye , Peter Eisentraut , Tom Lane , Daniel Gustafsson , Matthias van de Meent , Nikolay Samokhvalov , "Kyzer Davis (kydavis)" , Andres Freund , "brad@peabody.io" , Kirk Wolak Message-ID: <1971811009.2132347.1706599708209@mail.yahoo.com> In-Reply-To: <8AA22330-7D3A-46CF-B311-2FF874D7C713@yandex-team.ru> References: <1003561938.6914482.1704452267331@mail.yahoo.com> <80E8F728-FC9C-461E-9B61-332E3AAEC066@yandex-team.ru> <67eb8a02-f35c-af10-1615-afae0f9f7548@sztoch.pl> <8A52AED1-2CA6-403C-8B5B-D24EA8D58616@yandex-team.ru> <9CE1E513-B11A-4C59-980E-D61EC56716E7@yandex-team.ru> <0A0D7507-C434-46AC-BCC4-1166C5A2742A@yandex-team.ru> <1459150585.359059.1706132985954@mail.yahoo.com> <00B784AB-5B52-4CC7-8A0D-B1C0C53B52DC@yandex-team.ru> <1014147035.642629.1706202245918@mail.yahoo.com> <5932FFF8-4E5F-44DC-8FEA-22E8302759C7@yandex-team.ru> <8AA22330-7D3A-46CF-B311-2FF874D7C713@yandex-team.ru> Subject: Re: UUID v7 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2132346_1502116025.1706599708207" X-Mailer: WebService/1.1.22046 YMailNorrin Content-Length: 5108 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ------=_Part_2132346_1502116025.1706599708207 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Andrey, I think this phrase is outdated: "This function can optionally accept a tim= estamp used instead of current time.This allows implementation of k-way sot= able identifiers." This phrase=C2=A0is wrong:=C2=A0"Both functions return a version 4 (random)= UUID." For this phrase the reason is unclear=C2=A0and the phrase is=C2=A0most like= ly incorrect: if large batches of UUIDs are generated at the+=C2=A0 =C2=A0same time it's = possible that some UUIDs will store a time that is slightly later+=C2=A0 = =C2=A0than their actual generation time Sergey Prokhorenko sergeyprokhorenko@yahoo.com.au=20 On Tuesday, 30 January 2024 at 09:55:04 am GMT+3, Andrey M. Borodin wrote: =20 =20 =20 > On 30 Jan 2024, at 01:38, Jelte Fennema-Nio wrote: >=20 > Yeah, I liked the feature to generate UUIDv7 based on timestamp too. > But following the spec seems more important than a nice feature to me. PFA v15. Changes: removed timestamp argument, incorporated Jelte=E2=80=99s = documentation addons. Thanks! Best regards, Andrey Borodin. =20 ------=_Part_2132346_1502116025.1706599708207 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I think this phrase is o= utdated: "This= function can optionally accept a timestamp used instead of current time.
This allows implementation of k-way sotable identifiers."

= This phrase is wrong: "Both functions return a version 4 (random) UUID."

For this phrase the re= ason is unclear and the phrase is most likely incorrect:
if large batches of UUIDs= are generated at the
+   same time it's possible that = some UUIDs will store a time that is slightly later
+ = ;  than their actual generation time


Sergey Prokhoren= ko

sergeyprokhorenko@yahoo.com.au


=20
=20
On Tuesday, 30 January 2024 at 09:55:04 am GMT+3, Andre= y M. Borodin <x4mmm@yandex-team.ru> wrote:




> = On 30 Jan 2024, at 01:38, Jelte Fennema-Nio <postgres@jelte= f.nl> wrote:
>
> Yeah, I = liked the feature to generate UUIDv7 based on timestamp too.
> But following the spec seems more important than a nice feature to= me.


PFA v15. Changes: removed t= imestamp argument, incorporated Jelte=E2=80=99s documentation addons.

Thanks!


Best regards, Andrey Borodin.

=
------=_Part_2132346_1502116025.1706599708207--