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 1kPWBX-0000V4-AT for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 19:30: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 1kPWBV-0002YM-Es for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 19:30:09 +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 1kPWBV-0002YE-7S for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 19:30:09 +0000 Received: from mx32.harte-lyne.ca ([216.185.71.32]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPWBS-0007bW-9k for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 19:30:08 +0000 Received: from mx32.harte-lyne.ca (localhost [127.0.32.1]) by mx32.harte-lyne.ca (Postfix) with ESMTP id 25D8E5BBD9; Mon, 5 Oct 2020 15:30:04 -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 svc-3EsLgtEO; Mon, 5 Oct 2020 15:30:01 -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 275355BBCE; Mon, 5 Oct 2020 15:30:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1601926201; bh=RRbBVlQpip6IYwjxe5PxgGs13oCiYS/Wtb0mWqkSDzE=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=uZ+WQsy1TMnEvoEYPMNAMLHMm2E340L823VTbNHa86mDPw1TR4fT2U6389pCJhadF OOctag5spP5+Gf0C2SrNCjyAuePPVYY1qd+mR7SP3C5XTS1ogtt90iE8yhLHw9CBb1 Gg/3gORmkZZXwRZOuajU7UXID4l9DGsLMv1rxSsKrYiiSmWK8FtZftjaSlRAyPWeFD 4//g3BhYOIufRTp6dg7j3gIb6hkk2Q87no+i3PCwFdwGKjoXDl9ROeBjNKBlJavyRJ Q0OW6VCveCDf68DBwb4nFWFO19qVC1CUi9/a6MPtiRuTWiH3QtAhlf39G+F1b6VSlh Gw8n8zw5Bk9Sw== Received: from 216.185.71.41 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Mon, 5 Oct 2020 15:30:01 -0400 Message-ID: <824f001d62c338ee20dbfc7483fd2860.squirrel@webmail.harte-lyne.ca> In-Reply-To: <9653ebb5-98cc-b318-335d-babd7a62ce70@aklaver.com> 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> <383e5b19-4fd5-bbf3-dd42-2e3d3c68206f@aklaver.com> <7b62b10e902e0831769f7ad5ffb37b25.squirrel@webmail.harte-lyne.ca> <70f1b155-42bf-9c66-27d2-a391842f335f@aklaver.com> <14597a6a35fe09a349fb56098ed4c5db.squirrel@webmail.harte-lyne.ca> <9653ebb5-98cc-b318-335d-babd7a62ce70@aklaver.com> Date: Mon, 5 Oct 2020 15:30:01 -0400 Subject: Re: UUID generation problem From: "James B. Byrne" To: "Adrian Klaver" Cc: "Tom Lane" , 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 15:20, Adrian Klaver wrote: > > The uuid-extension needs to be installed by a super user: > . . . > > So postgres is probably as good as any. > > I was just pointing out that what you posted earlier: > > 2000 2020-09-11 16:15:17: psql -d idempiere -U adempiere -c 'CREATE > EXTENSION > "uuid-ossp"' > > 2001 2020-09-11 16:17:08: su idempiere -c" psql -d idempiere -U > adempiere -c > 'CREATE EXTENSION "uuid-ossp" > > > does not match what you showed for the actual installed code: > > > idempiere=# \df+ uuid_generate_v4 > > List > of > functions > Schema | Name | Result data type | Argument data types | > Type | > Volatility | Parallel | Owner | Security | Access privileges | > Language | > Source code | Description > --------+------------------+------------------+---------------------+------+------------+----------+----------+----------+-------------------+----------+------------------+------------- > public | uuid_generate_v4 | uuid | | > func | > volatile | safe | postgres | invoker | | c | > uuid_generate_v4 | > > NOTE: Owner = postgres. > > > Ah, I copied the wrong line from the history display. I am so confused by this. I tried to do this: [root@accounting-2 ~ (master)]# psql -E --dbname=idempiere --username=idempiere_dbadmin --host=localhost Password for user idempiere_dbadmin: psql (11.8) Type "help" for help. idempiere(5432)=# alter role "idempiere-dbadmin" set search_path = 'adempiere, pg_catalog, public'; ERROR: role "idempiere-dbadmin" does not exist idempiere(5432)=# If the role idempiere-dbadmin does not exist then how did I connect to the idempiere database? -- *** 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