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 1mLwiA-0001cA-4s for pgsql-general@arkaria.postgresql.org; Fri, 03 Sep 2021 00:05:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mLwi6-0005a7-KA for pgsql-general@arkaria.postgresql.org; Fri, 03 Sep 2021 00:05:34 +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 1mLwi5-0005Zz-QW for pgsql-general@lists.postgresql.org; Fri, 03 Sep 2021 00:05:34 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLwi1-0002ZO-Qu for pgsql-general@lists.postgresql.org; Fri, 03 Sep 2021 00:05:32 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0C0EE5C01DE; Thu, 2 Sep 2021 20:05:28 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 02 Sep 2021 20:05:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=K qq2Rzz0J/xC0P7yw+kkB/kxj1x69pkYak5Ao9D0GG8=; b=KvdO43tgOT5IRQRK6 IrBY+i61v5hksWA02uASMa5IT4LcXoLX+YFiyLVQVdPe7dVJpZihx6yp4vkP0jsF gn/iut+iU9gxBYb2EvySleF2F7OBwRawHPQObwEyCOCtqUa9vg8IF9pHrW+L/qmv 5znYWPaYy3v3fIBUN9w/dSzhPhVSMxsnHqU5PQkdLLQ5Ws92mj9UuJpqtUn7OcSX 6uFHj75rJBG5syytZhYxYaYljJGIPcx/L9Ww2NuBAvy/W+vip2u14WPMuqcnCoio rAbay9sJGihkkOBQvpWLubQDT6HUVzsASVePz3ZeT3JuKhLI8QHYBcTZF4zMCEgV ZFTZg== 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=fm3; bh=Kqq2Rzz0J/xC0P7yw+kkB/kxj1x69pkYak5Ao9D0G G8=; b=DVZb7A7pJ+TBejPc/VwMAnzZWu66U9FLxmjPEkFwOUd8gW7GSZU3sGhmY aRA9jrUK+HHLY/wq1UKmgNQjTb5JpnoToTMh0Xvzk9+V/u+3zHihmYqtkyYnAFU5 pl6EE04P9NLqmObUbDWH7DLsHdkmstds9iWGM8HAwkAi7PaGHrBtkvrYdHb/m0Tp PSwRFvWeCA7Jdc+herjPXXXT50qWBtR4PjCEuFQGIZGm+UzCGfF+etiBOFGl0llZ j/fguezXuZA6jypq5sUkuPA5qtSXpLdbB/fd7/DaUJ0Tfr1ziFtxHhsjeHqUJ6fS HRKAoOdqqdhLM3r4i3zYMCtUz5zCA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddviedgfeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepveevfeevfe eugeffkeekhfegieeufffgteeujedvgffhueejjefhkeejleegtdegnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Sep 2021 20:05:27 -0400 (EDT) Subject: Re: gen_random_uuid key collision To: jesusthefrog Cc: pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <2972999b-cd4b-c889-74f8-fb8a96413707@aklaver.com> Date: Thu, 2 Sep 2021 17:05:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/2/21 4:38 PM, jesusthefrog wrote: > On Thu, Sep 2, 2021 at 7:35 PM Adrian Klaver > wrote: > > What is the table schema as returned by \d in psql? > > > The tables are in various schemas; that one is in one called But only one is generating errors. Schema refers to an object's definition as well as a namespace. So what does: \d
return? > "access_control", but we always set the search path explicitly to (in > this case) "access_control, public". > Anyway, if if were a problem with finding the function, I would be > seeing a different error .The function successfully runs, it is just > (apparently) occasionally generating the same UUID multiple times. > > -- > -----BEGIN GEEK CODE BLOCK----- >   Version: 3.12 >   GIT d- s+ a- C++++ L+++ S++ B+ P++>++++ E++ W+++ >   N o? K- !w++++ O- M- V? PS++ PE- Y+ PGP t+ 5+++ >   X R+ tv b+++ DI++ D++ G+ e-- h- r++ y > ------END GEEK CODE BLOCK------ -- Adrian Klaver adrian.klaver@aklaver.com