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 1kPSmZ-0001rb-Qt for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 15:52:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPSmY-0001F3-6T for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 15:52:10 +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 1kPSmX-0001Ew-VR for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 15:52:09 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPSmV-0005oN-NX for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 15:52:09 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 7BCC85C005E; Mon, 5 Oct 2020 11:52:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 05 Oct 2020 11:52:06 -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=fm1; bh=L qDqfxjO0/SOGCnUqRtj/wVAMultB3MBl39NABHbNmk=; b=WyrlhISZ1Pq/c1HnK 5rVua4JWjCfM3xDll4jh3tuwPOFiKhOCqXHiewHdqS5Wbw0yc4yfMC3udEjLK2MZ IOcH3UhuJQl+dSZlJDFOOb+ZXCsEQuowkQbdMB0v+1WiG2sw1HhOEit7BnD92jeK xnFqk3BLtlC05yZ5831NQEZ+fviY1u60zID4seSBaeuqYyw+mSDvw5vxhlj+SAKO cTiDWHLD1dr0VSPmgoCdMa/p2fAXc59iLsmSH1akZkapGAMum3Fwqdp61C1h/WcS C3Xf+7fO+Qo4Xv595ttLTAzxTkvTJs1Re41e8CVKv2VKg6BbRfHfrrmj1jwW8mEK gem3g== 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=LqDqfxjO0/SOGCnUqRtj/wVAMultB3MBl39NABHbN mk=; b=EvpXyF8o4fdPA5zZiDqS8zK+3wx1Ux6ul4gd2jQkAbqOgfO6R0zMPhrJR skqOcwhpcEp+27yps+9Gaf5TrjfcERPCLMMSOGi851A/bsY08629tEhnwhwLTVFm 5OXvWyzlKwb+CSMGRT/E6LFZnOcRVCVNpFf/L2tkMTNb9yfwL81vNH2taF1DB6Oa lELBzHVGC3/0ZD4lhst+M7f3YEZNLz/38pLn6eJUGIFSL4ybEnLi/8B0yEIMNYy7 89GOKqg7GmdNcyaDRVJzRuj0T6cXvq6T97Ks/KOX5gfRFtNbrnSA7xAdh4qUUq69 BdhdspW4Lw5shlOboY5NW5rxGBEfQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgedvgdeliecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeehleetudffve ethefggeevgeeigfegkeffhefftdfgkefftdefjeevveevtdfftdenucffohhmrghinhep hhgrrhhtvgdqlhihnhgvrdgtrgenucfkphepjeehrddujedvrdehrddvfedunecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id AA4E93280064; Mon, 5 Oct 2020 11:52:05 -0400 (EDT) Subject: Re: UUID generation problem To: byrnejb@harte-lyne.ca, Tom Lane Cc: pgsql-general@lists.postgresql.org References: <271dfd309957472734a7aab8999659b1.squirrel@webmail.harte-lyne.ca> <86544317-8fa2-9193-6af2-6b6e5eab1cba@aklaver.com> <13a362eba18fbef24f8170a3e0cd8a9f.squirrel@webmail.harte-lyne.ca> <1721392.1601909600@sss.pgh.pa.us> From: Adrian Klaver Message-ID: <383e5b19-4fd5-bbf3-dd42-2e3d3c68206f@aklaver.com> Date: Mon, 5 Oct 2020 08:52:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/5/20 8:43 AM, James B. Byrne wrote: > > > On Mon, October 5, 2020 10:53, Tom Lane wrote: > >> That seems to show quite definitively that public is not in your >> search_path, which contradicts the current_schemas() result you >> gave earlier. I continue to suspect that you are somehow >> confusing yourself by testing in different databases and/or >> with different user accounts. > > Possibly. I do not make any definitive claims at this point. However, the > application properties of the DB connection are: > > Connection=xyzCConnection[name\=accounting.harte-lyne.ca > {localhost-idempiere-idempiere_dbadmin}, > AppsHost\=accounting.harte-lyne.ca, > WebPort\=8080, > SSLPort\=8443, > type\=PostgreSQL, > DBhost\=localhost, > DBport\=5432, > DBname\=idempiere, > BQ\=false, > FW\=false, > FWhost\=, > FWport\=0, > UID\=idempiere_dbadmin, > PWD\=xxxxxxxxxxxxxxxx] > > This indicates that the DB name is idempiere and that the DB connection user > name is idempiere_dbadmin. > > psql shows this: > > [root@accounting-2 ~ (master)]# psql --dbname=idempiere > --username=idempiere_dbadmin > Password for user idempiere_dbadmin: > psql (11.8) > Type "help" for help. > > idempiere=# \l > List of databases > Name | Owner | Encoding | Collate | Ctype | > Access privileges > ---------------------+-------------------+----------+---------+-------+----------------------- > idempiere | idempiere_dbadmin | UTF8 | C | C | > lsmb_access_test_db | postgres | UTF8 | C | C | > postgres | postgres | UTF8 | C | C | > template0 | postgres | UTF8 | C | C | > =c/postgres + > | | | | | > postgres=CTc/postgres > template1 | postgres | UTF8 | C | C | > =c/postgres + > | | | | | > postgres=CTc/postgres > testcompany | lsmb_dbadmin | UTF8 | C | C | > (6 rows) > > The username idempiere_dbadmin does not exist in /etc/passwd. It would not unless it was an OS/system user also. It is just a Postgres database user name(role). > > idempiere=# \dx > List of installed extensions > Name | Version | Schema | Description > -----------+---------+------------+------------------------------------------------- > plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language > uuid-ossp | 1.1 | public | generate universally unique identifiers > (UUIDs) Your previous posts show uuid-ossp and its functions installed somewhere. The issue is that the functions are not being found unless they are schema qualified and that has to do with search_path. > > The idempiere database was created before I added the uuid-ossp extension. That > possibly bears on this matter. That is the natural order of events. The database has to exist before you can add an extension to it. Unless you are saying that you did not build the extension until after the database was created. -- Adrian Klaver adrian.klaver@aklaver.com