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 1n7bYX-0006ll-H0 for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Jan 2022 11:12:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n7bYW-0007Pp-AW for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Jan 2022 11:12:40 +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 1n7bYU-0007Ov-VQ for pgsql-bugs@lists.postgresql.org; Wed, 12 Jan 2022 11:12:40 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n7bYP-00070u-2E for pgsql-bugs@lists.postgresql.org; Wed, 12 Jan 2022 11:12:37 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id CEA863200E79; Wed, 12 Jan 2022 06:12:28 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 12 Jan 2022 06:12:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=QFHZzAy4aVAt2bjhD/d49Tqrus075Ll+d4bSuqEFf Gk=; b=kx4nJYCS+x9YpJGVZ9u12IEC60jMT+bs82TEKz12zT9kFXpvzsfTeAQ+3 0L++TRmZ+vJK0vZ44HO9q56+u0DqnwoQCdfpnws7P4aEwenKI9/DCLHgDGB+3wAv BCxGXfDXvkGctfU8Z14qb648Oje1ZUypekDeFazxCcbawCQ/EvnUBtm4Dcdb31cB fshdu1oi/IE9yowIFtfWgPM20/wgFzE7qy3r/FHOYubx5JrMrHhkb+UPQIjZH6/B idUoZTtJhjZdF3D7rLfAbDxiJuXYEOgJkx6fWGKEiDKG+Bc/7Ijry/9gVlg069t8 EQAALvOXLphCMqcahD3WIyOalYwLg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrtddtgddtudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvghtvghr ucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrh hprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeegfffftdelfedvgfekffel veegfeelkefhvefgkeefveehueeitdeufedtlefhkeenucffohhmrghinhepihgvthhfrd horhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep phgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Jan 2022 06:12:26 -0500 (EST) Message-ID: <20727828-66c0-19d8-4b75-ce3ff12bf990@enterprisedb.com> Date: Wed, 12 Jan 2022 12:12:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: BUG #17358: While using --with-uuid=bsd option, uuid_ossp test fails on NetBSD 9.2 Content-Language: en-US To: Tom Lane , Andres Freund Cc: byavuz81@gmail.com, pgsql-bugs@lists.postgresql.org References: <17358-89806e7420797025@postgresql.org> <1377833.1641588532@sss.pgh.pa.us> <20220108194454.kl477tb6km6tyj5r@alap3.anarazel.de> <1581508.1641671996@sss.pgh.pa.us> <20220108200643.2ufdoxj5gdfvrrdg@alap3.anarazel.de> <1584605.1641674133@sss.pgh.pa.us> <20220108204528.f7viwyuxamdm2n34@alap3.anarazel.de> <1588971.1641677131@sss.pgh.pa.us> <1605935.1641688721@sss.pgh.pa.us> From: Peter Eisentraut In-Reply-To: <1605935.1641688721@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 09.01.22 01:38, Tom Lane wrote: > I wrote: >> Well, maybe. Just considering having our own generator already puts us >> in a state of sin, because the whole argument for v1 UUID uniqueness >> hinges on there being just one generator per machine (or per MAC >> address, anyway). As soon as there are independent generators using >> the same MAC address, they can't positively guarantee uniqueness. >> My thought about it is that once you've crossed that boundary, allowing >> each process to generate UUIDs independently is not much of a leap. > > After a bit of further thought, it seems like a reasonable compromise > could be to move the code into core PG and maintain the UUID assignment > state in shared memory. We'd still set the clock sequence number to > something random at shmem initialization, but thereafter all backends > would draw from that shared state, allowing us to provide a guarantee > of uniqueness across the PG instance rather than just per-process. I look forward to the new more database-friendly UUID versions being standardized: https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-02 I don't think we need to do a lot of work in the meantime to rescue obsolete UUID versions that no one really uses in practice, based on a problem on one marginal platform.