pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Förster <paul.foerster@gmail.com>
To: byrnejb@harte-lyne.ca
Cc: pgsql-general@lists.postgresql.org
Subject: Re: UUID generation problem
Date: Mon, 5 Oct 2020 19:34:56 +0200
Message-ID: <B162B0E3-BB52-4748-96F7-93561795E8B6@gmail.com> (raw)
In-Reply-To: <c2e71e8adee605d79e4e95c7a963f711.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>
	<cf5938f7-5dc7-b9c4-16b5-b790737a31a2@aklaver.com>
	<91900e671c6f124811856337449555e1.squirrel@webmail.harte-lyne.ca>
	<5D2FCB5D-43F9-4FC6-87F8-6AA073B3FB1B@gmail.com>
	<5ddb4d5509945a2daf8b26f403810101.squirrel@webmail.harte-lyne.ca>
	<B81B7CE5-05F9-45AB-A3B7-8B6FEEEED624@gmail.com>
	<c2e71e8adee605d79e4e95c7a963f711.squirrel@webmail.harte-lyne.ca>

Hi James,

> On 05. Oct, 2020, at 19:16, James B. Byrne <byrnejb@harte-lyne.ca> wrote:
> 
> As this is an application package it is not within my purview to alter the
> code.  To do so would rik a return of the problem with every update.
> 
> Adding public to the search path is fine by me.  However, I still need to find
> out how this situation arose.  Is it something I did or something that the
> installer does by default?  The project notes 'suggest' 'adempiere' as the
> username for access.  However they do not use wording to imply that one must
> use it.  However, if there is something in the installer that uses 'adempiere'
> regardless of the properties settings then I need to discover this.

well, actually, you can just set the search_path for the role the application logs in with:

alter role <app_role> set search_path = '<schema>, pg_catalog, public';

The next time <app_role> 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




view thread (53+ messages)  latest in thread

Message-ID: <B162B0E3-BB52-4748-96F7-93561795E8B6@gmail.com>
Permalink:  ../B162B0E3-BB52-4748-96F7-93561795E8B6@gmail.com/
Also on:    postgresql.org/message-id/B162B0E3-BB52-4748-96F7-93561795E8B6@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: paul.foerster@gmail.com, byrnejb@harte-lyne.ca
  Subject: Re: UUID generation problem
  In-Reply-To: <B162B0E3-BB52-4748-96F7-93561795E8B6@gmail.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> <cf5938f7-5dc7-b9c4-16b5-b790737a31a2@aklaver.com> <91900e671c6f124811856337449555e1.squirrel@webmail.harte-lyne.ca> <5D2FCB5D-43F9-4FC6-87F8-6AA073B3FB1B@gmail.com> <5ddb4d5509945a2daf8b26f403810101.squirrel@webmail.harte-lyne.ca> <B81B7CE5-05F9-45AB-A3B7-8B6FEEEED624@gmail.com> <c2e71e8adee605d79e4e95c7a963f711.squirrel@webmail.harte-lyne.ca> <B162B0E3-BB52-4748-96F7-93561795E8B6@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