pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: James B. Byrne <byrnejb@harte-lyne.ca>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: UUID generation problem
Date: Mon, 5 Oct 2020 11:43:21 -0400
Message-ID: <afb165220d3b3404aebaae979fdaeed2.squirrel@webmail.harte-lyne.ca> (raw)
In-Reply-To: <1721392.1601909600@sss.pgh.pa.us>
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>



On Mon, October 5, 2020 10:53, Tom Lane wrote:

> That seems to show quite definitively that public is not in your
> search_path, which contradicts the current_schemas() result you
> gave earlier.  I continue to suspect that you are somehow
> confusing yourself by testing in different databases and/or
> with different user accounts.

Possibly.  I do not make any definitive claims at this point.  However, the
application properties of the DB connection are:

Connection=xyzCConnection[name\=accounting.harte-lyne.ca
{localhost-idempiere-idempiere_dbadmin},
AppsHost\=accounting.harte-lyne.ca,
WebPort\=8080,
SSLPort\=8443,
type\=PostgreSQL,
DBhost\=localhost,
DBport\=5432,
DBname\=idempiere,
BQ\=false,
FW\=false,
FWhost\=,
FWport\=0,
UID\=idempiere_dbadmin,
PWD\=xxxxxxxxxxxxxxxx]

This indicates that the DB name is idempiere and that the DB connection user
name is idempiere_dbadmin.

psql shows this:

[root@accounting-2 ~ (master)]# psql --dbname=idempiere
--username=idempiere_dbadmin
Password for user idempiere_dbadmin:
psql (11.8)
Type "help" for help.

idempiere=# \l
                                      List of databases
        Name         |       Owner       | Encoding | Collate | Ctype |  
Access privileges
---------------------+-------------------+----------+---------+-------+-----------------------
 idempiere           | idempiere_dbadmin | UTF8     | C       | C     |
 lsmb_access_test_db | postgres          | UTF8     | C       | C     |
 postgres            | postgres          | UTF8     | C       | C     |
 template0           | postgres          | UTF8     | C       | C     |
=c/postgres          +
                     |                   |          |         |       |
postgres=CTc/postgres
 template1           | postgres          | UTF8     | C       | C     |
=c/postgres          +
                     |                   |          |         |       |
postgres=CTc/postgres
 testcompany         | lsmb_dbadmin      | UTF8     | C       | C     |
(6 rows)

The username idempiere_dbadmin does not exist in /etc/passwd.

idempiere=# \dx
                            List of installed extensions
   Name    | Version |   Schema   |                   Description
-----------+---------+------------+-------------------------------------------------
 plpgsql   | 1.0     | pg_catalog | PL/pgSQL procedural language
 uuid-ossp | 1.1     | public     | generate universally unique identifiers
(UUIDs)
(2 rows)

idempiere=# \dx+
      Objects in extension "plpgsql"
            Object description
-------------------------------------------
 function plpgsql_call_handler()
 function plpgsql_inline_handler(internal)
 function plpgsql_validator(oid)
 language plpgsql
(4 rows)

      Objects in extension "uuid-ossp"
             Object description
---------------------------------------------
 function public.uuid_generate_v1()
 function public.uuid_generate_v1mc()
 function public.uuid_generate_v3(uuid,text)
 function public.uuid_generate_v4()
 function public.uuid_generate_v5(uuid,text)
 function public.uuid_nil()
 function public.uuid_ns_dns()
 function public.uuid_ns_oid()
 function public.uuid_ns_url()
 function public.uuid_ns_x500()
(10 rows)

The idempiere database was created before I added the uuid-ossp extension. That
possibly bears on this matter.


-- 
***          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: <afb165220d3b3404aebaae979fdaeed2.squirrel@webmail.harte-lyne.ca>
Permalink:  ../afb165220d3b3404aebaae979fdaeed2.squirrel@webmail.harte-lyne.ca/
Also on:    postgresql.org/message-id/afb165220d3b3404aebaae979fdaeed2.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, tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com
  Subject: Re: UUID generation problem
  In-Reply-To: <afb165220d3b3404aebaae979fdaeed2.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>

* 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