pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: [SOLVED] Re: UUID generation problem
Date: Wed, 7 Oct 2020 15:43:58 -0600
Message-ID: <658585cf-9509-4617-6e8e-cf659870916c@gmail.com> (raw)
In-Reply-To: <53ece822-e08a-fed3-27e9-4236ea2fa38c@aklaver.com>
References: <271dfd309957472734a7aab8999659b1.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>
	<70f1b155-42bf-9c66-27d2-a391842f335f@aklaver.com>
	<14597a6a35fe09a349fb56098ed4c5db.squirrel@webmail.harte-lyne.ca>
	<9653ebb5-98cc-b318-335d-babd7a62ce70@aklaver.com>
	<824f001d62c338ee20dbfc7483fd2860.squirrel@webmail.harte-lyne.ca>
	<CAKFQuwYCi_rSTuZU-=0rvUHRY5HTpkHt28eWSug7A-d2uPw15Q@mail.gmail.com>
	<60ab3991835001bd47f890430af3d29c.squirrel@webmail.harte-lyne.ca>
	<16783c94f9e648dcad6f4689b9862bb9.squirrel@webmail.harte-lyne.ca>
	<CAKFQuwbohUn4PNmOtSvX7o9F8We3ZgL6A=NU8ePc=Vd6S=4Y-w@mail.gmail.com>
	<955ee5f8e92a1c9781778a7aa3435d67.squirrel@webmail.harte-lyne.ca>
	<ede85191-cac9-755a-1bea-bb40906bf1c0@gmail.com>
	<53ece822-e08a-fed3-27e9-4236ea2fa38c@aklaver.com>



On 10/7/20 3:28 PM, Adrian Klaver wrote:
> On 10/7/20 2:24 PM, Rob Sargent wrote:
>>
>>
>> On 10/6/20 9:35 AM, James B. Byrne wrote:
>>> Thank you all for the help.  This is what ultimate resolved the issue 
>>> for me:
>>>
>>>
>>> [root@accounting-2 ~ (master)]#  psql -E --dbname=idempiere 
>>> --username=postgres
>>> --host=localhost
>>> Password for user postgres:
>>> psql (11.8)
>>> Type "help" for help.
>>>
>>> idempiere(5432)=#  select current_schemas(true);
>>>     current_schemas
>>> ---------------------
>>>   {pg_catalog,public}
>>> (1 row)
>>>
>>> idempiere(5432)=# ALTER ROLE idempiere_dbadmin SET search_path TO
>>> adempiere,public;
>>> ALTER ROLE
>>>
>>> idempiere(5432)=# \q
>>>
>>> [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)=#  select current_schemas(true);
>>>          current_schemas
>>> -------------------------------
>>>   {pg_catalog,adempiere,public}
>>>
>>>
>> I wonder what affect installing uuid-ossp in template1 /before/ 
>> starting with the idempiere installation might have had.  Such that 
>> 'create database idempiere;' would have put all the related functions 
>> in place immediately?
> 
> Well the issue was not the extension install. It was there. The problem 
> was the hide and seek with the search_path.  The idempiere_dbadmin role 
> had a database setting that overrode the default search_path and 
> prevented non-schema qualified calls to the functions to fail for that 
> role.
> 
> 
> 
Agreed, but I wasn't sure the idempiere_dbadmin role creation and 
uuid-ossp import interleaving didn't have a hand in that effect.  But 
water under the bridge now.





view thread (53+ messages)

Message-ID: <658585cf-9509-4617-6e8e-cf659870916c@gmail.com>
Permalink:  ../658585cf-9509-4617-6e8e-cf659870916c@gmail.com/
Also on:    postgresql.org/message-id/658585cf-9509-4617-6e8e-cf659870916c@gmail.com

 · 

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: robjsargent@gmail.com, adrian.klaver@aklaver.com
  Subject: Re: [SOLVED] Re: UUID generation problem
  In-Reply-To: <658585cf-9509-4617-6e8e-cf659870916c@gmail.com>
  References: <271dfd309957472734a7aab8999659b1.squirrel@webmail.harte-lyne.ca> <afb165220d3b3404aebaae979fdaeed2.squirrel@webmail.harte-lyne.ca> <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> <824f001d62c338ee20dbfc7483fd2860.squirrel@webmail.harte-lyne.ca> <CAKFQuwYCi_rSTuZU-=0rvUHRY5HTpkHt28eWSug7A-d2uPw15Q@mail.gmail.com> <60ab3991835001bd47f890430af3d29c.squirrel@webmail.harte-lyne.ca> <16783c94f9e648dcad6f4689b9862bb9.squirrel@webmail.harte-lyne.ca> <CAKFQuwbohUn4PNmOtSvX7o9F8We3ZgL6A=NU8ePc=Vd6S=4Y-w@mail.gmail.com> <955ee5f8e92a1c9781778a7aa3435d67.squirrel@webmail.harte-lyne.ca> <ede85191-cac9-755a-1bea-bb40906bf1c0@gmail.com> <53ece822-e08a-fed3-27e9-4236ea2fa38c@aklaver.com> <658585cf-9509-4617-6e8e-cf659870916c@gmail.com>

* 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