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 1kPVmN-00086g-2v for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 19:04: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 1kPVmL-0003dO-66 for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 19:04: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 1kPVmK-0003dH-UH for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 19:04:08 +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 1kPVmE-0007Ot-8z for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 19:04:08 +0000 Received: from mx32.harte-lyne.ca (localhost [127.0.32.1]) by mx32.harte-lyne.ca (Postfix) with ESMTP id 7E5855BAD1; Mon, 5 Oct 2020 15:04:00 -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 T2QZte5KkDM5; Mon, 5 Oct 2020 15:03:58 -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 D79B05BAC6; Mon, 5 Oct 2020 15:03:57 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1601924638; bh=PbY2C3t9o9s+m8BTb9oZcy8H74HurFS5BcpRYS6mptQ=; h=In-Reply-To:References:Date:Subject:From:To:Cc:Reply-To; b=nnQf80pHq9+QTr928fdqbGOCM8/SX3PDbsoUcfR4Vm26NApM0UMi1b0IT/IJjPYpm 96kngJiTjBVUcO5S0zeHQpOhM6H84T/OkXDFBQgE/Mr0TEEqPGLD8jfD4CpL3cmNLA yYpzX/KWwwRwBVZS4E5A9jtnCtntyUR/Qvp4CJirx0KpyVaO0sB9H3PIVXtF7Q5vEM kbB9CX9RJzUxN/l5U2tqyHAWwOTSKL1znV2UiApCbwMbV634qJ3SlgguW5EICyFBGj 8Ycz98BJjqFi0Nj6Z8uz41aBFWF3lC4Bd2hQOBZjQS9S7NdCUBchUBEAmW8Evx7Oso 802KcHOEYK21w== Received: from 216.185.71.41 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Mon, 5 Oct 2020 15:03:58 -0400 Message-ID: In-Reply-To: References: <271dfd309957472734a7aab8999659b1.squirrel@webmail.harte-lyne.ca> <86544317-8fa2-9193-6af2-6b6e5eab1cba@aklaver.com> <13a362eba18fbef24f8170a3e0cd8a9f.squirrel@webmail.harte-lyne.ca> <91900e671c6f124811856337449555e1.squirrel@webmail.harte-lyne.ca> <5D2FCB5D-43F9-4FC6-87F8-6AA073B3FB1B@gmail.com> <5ddb4d5509945a2daf8b26f403810101.squirrel@webmail.harte-lyne.ca> Date: Mon, 5 Oct 2020 15:03:58 -0400 Subject: Re: UUID generation problem From: "James B. Byrne" To: =?iso-8859-1?Q?=22Paul_F=C3=B6rster=22?= Cc: 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 13:34, Paul Förster wrote: > > well, actually, you can just set the search_path for the role the application > logs in with: > > alter role set search_path = ', pg_catalog, public'; > > The next time logs in, it should see the freshly set search_path. > > When we create an app schema and role set in our databases, we always do this > to make sure that the application role always finds its schema. We never had > any problems with this. > > https://www.postgresql.org/docs/current/ddl-schemas.html#DDL-SCHEMAS-PATH > https://www.postgresql.org/docs/current/sql-alterrole.html > > Hope this helps, > Paul idempiere(5432)=# select schema_name idempiere-# from information_schema.schemata; schema_name -------------------- public information_schema pg_catalog pg_toast_temp_1 pg_temp_1 pg_toast adempiere (7 rows) Do I infer from this that the application installer adds a schema called adempiere; regardless of what username I choose for the database owner? Or did I cause this selection of schema name through some explicit action of my own? I also infer that this can be corrected in the manner suggested by issuing: alter role idempiere-dbadmin set search_path = 'adempiere, pg_catalog, public'; Is this correct? When I created the user adempiere I used this: su - postgres -c 'createuser -S -d -r -l -P adempiere' Now, man createuser says this: . . . -S --no-superuser The new user will not be a superuser. This is the default. . . . But, psql says this (somewhat compressed): idempiere(5432)=# \du List of roles Role name | Attributes | Member of adempiere | Superuser | {} . . . So, as I specified -S (--no-superuser when creating this user how comes it that the adempiere username does, in fact, have the Superuser privilege? This is not something that I am conscious of having granted. For that matter, I first would have to research the exact command syntax to carry it out. Something in the installer must be doing something to the adempiere role, but I cannot find where. -- *** 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