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 1kPTOK-00037U-Sx for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 16:31:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPTOJ-0007aV-GK for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 16:31:11 +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 1kPTOJ-0007aM-8m for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 16:31:11 +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 1kPTOE-00067A-Vl for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 16:31:10 +0000 Received: from mx32.harte-lyne.ca (localhost [127.0.32.1]) by mx32.harte-lyne.ca (Postfix) with ESMTP id 5D3805B5D3; Mon, 5 Oct 2020 12:31: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 7GRgd3s1ZUua; Mon, 5 Oct 2020 12:31:02 -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 0B4715B5C8; Mon, 5 Oct 2020 12:31:02 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1601915462; bh=PnT84IeSUU6W60AGe58BSq3p6mjY1OX0no++sbNmwLo=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=kNN4sWCiS2KoyuCBjv11UO2UwWeLjjtjVsPvH62gTORK/YJHICmhXbefCt0AdGirG bQymqvXuqna2zMsGE+p3l1FeJxvMtScK/i91nOdlYCPqVX1eZd1SeoUHghbG5KyFFD kErzn4+tEXY+yJgtf0ePh2LEMxQlBC/g6gZu2X9PxWdXFw2JsBd8yDnOwKgxL5PWPw TkDPKPWmeSjnSW0W0jAkQnh79N/dBkU04C5AzpUwFsgUuo1tB4o+DLhBPDZAsbaHM1 6RMwgCTZSAQDQO3pFL88BDCNkgWY+P++qHjza7Cim1ue05uKACqzo8yvJB/lvusdK8 mn8HK/raV5IJw== Received: from 216.185.71.41 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Mon, 5 Oct 2020 12:31:02 -0400 Message-ID: <7b62b10e902e0831769f7ad5ffb37b25.squirrel@webmail.harte-lyne.ca> In-Reply-To: <383e5b19-4fd5-bbf3-dd42-2e3d3c68206f@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> Date: Mon, 5 Oct 2020 12:31:02 -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 11:52, Adrian Klaver wrote: > 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. > That is the meaning that I meant to convey. The a rough outline of the sequent of events respecting this was: Install postgreqsl Initialise database su - postgres -c 'createuser -S -d -r -l -P adempiere' Run install script which creates the application database. The install script(s) required a number of iterations and some modifications to get working on FreeBSD. su idempiere -c" psql -d idempiere -U adempiere -c 'CREATE EXTENSION "uuid-ossp"' At some point I decided to switch the name of the user owning the application database from adempiere to idempiere-dbadmin. Probably this was done to align the user names with our internal conventions. A decision which I strongly suspect is at the root of this problem. Following this decision I went through the entire modified install scripts again, this time using the new username(s). However, I did discover this: 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" I can only conjecture that I got confused at this point in the process and used the admpiere username artifact from the initial install attempts instead of the idempiere-admin username subsequently employed. I realise that I am providing this information in a rather disjointed manner. However the number of modifications and restarts I had to perform to get the software to install rather confuses my memory and the history logs do not add much in the way of clarity. What I need to know now is how to correct this error. -- *** 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