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 1kQHEE-0000Zs-G5 for pgsql-general@arkaria.postgresql.org; Wed, 07 Oct 2020 21:44:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kQHEC-0004RV-JG for pgsql-general@arkaria.postgresql.org; Wed, 07 Oct 2020 21:44:04 +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 1kQHEC-0004R1-9T for pgsql-general@lists.postgresql.org; Wed, 07 Oct 2020 21:44:04 +0000 Received: from mail-oo1-xc44.google.com ([2607:f8b0:4864:20::c44]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kQHE9-00071g-UW for pgsql-general@lists.postgresql.org; Wed, 07 Oct 2020 21:44:03 +0000 Received: by mail-oo1-xc44.google.com with SMTP id f19so738525oot.4 for ; Wed, 07 Oct 2020 14:44:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=AOig0O3+Fu+HhSuhO8IMfx4AUvTJ2Y/tCDOjKCm9BaU=; b=o5qKJU9F8jI9anMdogGhCbymHis1hcNJEqCcvKRndxH/KXV1DWtudnU0AxEaF3jF7A Ctl0laos2JSlbOAzfvpjb1SwSW1fcJXfZWK6izk8GjJBp4xsBqJX+q9a6kZiEMK55esO I1D+AKraxXWRDujiJHWXV1lhcbyGXB2MmFS6w3awwMV6y7keXNzGqJ7ANW7D+c8wpMGL Ujk34OCDMsjU6yVMSqea25mjgWEAU9R5u0iTwUAue5gk+kOg5OYx6zaHDXqI0pYzcQZC yQNEnZXwe1oqcf4sLdNEtLYh4ZqXBmeULAcZStnoTHUTLgYqqZzDpTf/iTXVyxqSbg8T FmdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AOig0O3+Fu+HhSuhO8IMfx4AUvTJ2Y/tCDOjKCm9BaU=; b=HXBDa+rQRyfbvbKmjO8duCXyzC/UPSLNrtM1ZUlnxb+hHPtHhhK/DxNyCBWpOKoFvE BYJko8al3Sj94vBxJdGyz4dRBmDFxihaxkO6uoN2Ev5DPSU0kunDR8fSRTJbj8vjiN+9 k+ULZX64ptqyyQU+v+UYuNShFp8Q4fFLvnZDRa9cKGnwfCAvxhw2vB6dLNsVqRXNzSkb O88s/uettW/ZFBx+9o0TS5cpv8FeQ8gdW0TzLezCCTX0c+NRoC73LYmSCiwFVT5ayZWr +O102YSv/6d/JC9BsHH3Uk3BihIuINcWRBeHciXPdHfHURt3EUNhv8RTmUEYt8LMf2B2 tI4g== X-Gm-Message-State: AOAM532ZxawOGNyF+sm7UJxp9DInEQEPI+KRkNhYJxEqO4OKKt/OU27c xLiuvp3ENrr3kt7MxgQuJjPF5u9tmVwhIw== X-Google-Smtp-Source: ABdhPJxoBoLyESVtNr1bhrgemIgU16X/x7KCajE0PJ5Ejg4BYqrnS2wKD+kAA7ljCQh/eQ1MtBSogA== X-Received: by 2002:a4a:a787:: with SMTP id l7mr3339730oom.63.1602107039647; Wed, 07 Oct 2020 14:43:59 -0700 (PDT) Received: from ?IPv6:2601:681:5500:dde0:1162:b0dd:f9e4:c37e? ([2601:681:5500:dde0:1162:b0dd:f9e4:c37e]) by smtp.gmail.com with ESMTPSA id y23sm3439139ooj.34.2020.10.07.14.43.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Oct 2020 14:43:59 -0700 (PDT) Subject: Re: [SOLVED] Re: UUID generation problem To: Adrian Klaver , pgsql-general@lists.postgresql.org References: <271dfd309957472734a7aab8999659b1.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> <824f001d62c338ee20dbfc7483fd2860.squirrel@webmail.harte-lyne.ca> <60ab3991835001bd47f890430af3d29c.squirrel@webmail.harte-lyne.ca> <16783c94f9e648dcad6f4689b9862bb9.squirrel@webmail.harte-lyne.ca> <955ee5f8e92a1c9781778a7aa3435d67.squirrel@webmail.harte-lyne.ca> <53ece822-e08a-fed3-27e9-4236ea2fa38c@aklaver.com> From: Rob Sargent Message-ID: <658585cf-9509-4617-6e8e-cf659870916c@gmail.com> Date: Wed, 7 Oct 2020 15:43:58 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <53ece822-e08a-fed3-27e9-4236ea2fa38c@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.