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 1kPSeD-0001b4-U5 for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 15:43:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPSeC-0007c3-O6 for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 15:43:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPSeC-0007b2-GV for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 15:43:32 +0000 Received: from mx32.harte-lyne.ca ([216.185.71.32]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPSe6-00052g-0V for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 15:43:31 +0000 Received: from mx32.harte-lyne.ca (localhost [127.0.32.1]) by mx32.harte-lyne.ca (Postfix) with ESMTP id CDF375B4E9; Mon, 5 Oct 2020 11:43:24 -0400 (EDT) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from mx32.harte-lyne.ca ([127.0.32.1]) by mx32.harte-lyne.ca (mx32.harte-lyne.ca [127.0.32.1]) (amavisd-new, port 10024) with ESMTP id iGvUZVz-onVb; Mon, 5 Oct 2020 11:43:21 -0400 (EDT) Received: from webmail.harte-lyne.ca (webmail.hamilton.harte-lyne.ca [216.185.71.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx32.harte-lyne.ca (Postfix) with ESMTPSA id 187B45B4DB; Mon, 5 Oct 2020 11:43:21 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1601912601; bh=8Mk5ZdFJTd5TCKoQZ5QQMR2CrG2vcf1xe0xC0xFnF+Q=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=o41zqfTW6vsQkVwrqfmY+sKXE2E8/rPYgBIdLbDCVxlE+7TTFwvx4XNM1weQ4G3YZ pgD6mv13mD0jsBVPugJLk7l3bFQRljoI2ofgdV7MqPLZvoHhOB0xhO6XTq3fJnBGhj 5xJ6JGGUnW4ODD4hx4xskY21ytFsa9MitUMWhDMkbxn1r6iAArlf7KKcp6tjBmdAtc bj9aFVEHrHFD3mn8a/DXVCrcIhRlhyr5rT5AXHu2jBXcOqdv9IpkAIfXh3TPIBBoiu JPioM/a+mwFYVG/qJYYH4LEGbwnVt57VInNidjK3tI/45xc8ciEtmcSJ7mHz3e2XPu HR61ZDojlzcqQ== Received: from 216.185.71.41 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Mon, 5 Oct 2020 11:43:21 -0400 Message-ID: In-Reply-To: <1721392.1601909600@sss.pgh.pa.us> 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> Date: Mon, 5 Oct 2020 11:43:21 -0400 Subject: Re: UUID generation problem From: "James B. Byrne" To: "Tom Lane" Cc: "Adrian Klaver" , pgsql-general@lists.postgresql.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. 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) (2 rows) idempiere=# \dx+ Objects in extension "plpgsql" Object description ------------------------------------------- function plpgsql_call_handler() function plpgsql_inline_handler(internal) function plpgsql_validator(oid) language plpgsql (4 rows) Objects in extension "uuid-ossp" Object description --------------------------------------------- function public.uuid_generate_v1() function public.uuid_generate_v1mc() function public.uuid_generate_v3(uuid,text) function public.uuid_generate_v4() function public.uuid_generate_v5(uuid,text) function public.uuid_nil() function public.uuid_ns_dns() function public.uuid_ns_oid() function public.uuid_ns_url() function public.uuid_ns_x500() (10 rows) The idempiere database was created before I added the uuid-ossp extension. That possibly bears on this matter. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Unencrypted messages have no legal claim to privacy Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3