pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: James B. Byrne <byrnejb@harte-lyne.ca>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: UUID generation problem
Date: Mon, 5 Oct 2020 12:31:02 -0400
Message-ID: <7b62b10e902e0831769f7ad5ffb37b25.squirrel@webmail.harte-lyne.ca> (raw)
In-Reply-To: <383e5b19-4fd5-bbf3-dd42-2e3d3c68206f@aklaver.com>
References: <271dfd309957472734a7aab8999659b1.squirrel@webmail.harte-lyne.ca>
	<86544317-8fa2-9193-6af2-6b6e5eab1cba@aklaver.com>
	<d4d8c3b2def5f1cb33bffe21a7085811.squirrel@webmail.harte-lyne.ca>
	<dfc4a83f-c227-684c-c841-e2fa7069bd4b@aklaver.com>
	<13a362eba18fbef24f8170a3e0cd8a9f.squirrel@webmail.harte-lyne.ca>
	<1721392.1601909600@sss.pgh.pa.us>
	<afb165220d3b3404aebaae979fdaeed2.squirrel@webmail.harte-lyne.ca>
	<383e5b19-4fd5-bbf3-dd42-2e3d3c68206f@aklaver.com>



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






view thread (53+ messages)  latest in thread

Message-ID: <7b62b10e902e0831769f7ad5ffb37b25.squirrel@webmail.harte-lyne.ca>
Permalink:  ../7b62b10e902e0831769f7ad5ffb37b25.squirrel@webmail.harte-lyne.ca/
Also on:    postgresql.org/message-id/7b62b10e902e0831769f7ad5ffb37b25.squirrel@webmail.harte-lyne.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: byrnejb@harte-lyne.ca, adrian.klaver@aklaver.com, tgl@sss.pgh.pa.us
  Subject: Re: UUID generation problem
  In-Reply-To: <7b62b10e902e0831769f7ad5ffb37b25.squirrel@webmail.harte-lyne.ca>
  References: <271dfd309957472734a7aab8999659b1.squirrel@webmail.harte-lyne.ca> <86544317-8fa2-9193-6af2-6b6e5eab1cba@aklaver.com> <d4d8c3b2def5f1cb33bffe21a7085811.squirrel@webmail.harte-lyne.ca> <dfc4a83f-c227-684c-c841-e2fa7069bd4b@aklaver.com> <13a362eba18fbef24f8170a3e0cd8a9f.squirrel@webmail.harte-lyne.ca> <1721392.1601909600@sss.pgh.pa.us> <afb165220d3b3404aebaae979fdaeed2.squirrel@webmail.harte-lyne.ca> <383e5b19-4fd5-bbf3-dd42-2e3d3c68206f@aklaver.com> <7b62b10e902e0831769f7ad5ffb37b25.squirrel@webmail.harte-lyne.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox