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 12:39:23 -0400
Message-ID: <b1e2554490a1919e2213d85fc57799cd.squirrel@webmail.harte-lyne.ca> (raw)
In-Reply-To: <1732745.1601914016@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>
<afb165220d3b3404aebaae979fdaeed2.squirrel@webmail.harte-lyne.ca>
<1732745.1601914016@sss.pgh.pa.us>
On Mon, October 5, 2020 12:06, Tom Lane wrote:
> "James B. Byrne" <byrnejb@harte-lyne.ca> writes:
>> On Mon, October 5, 2020 10:53, Tom Lane wrote:
>>> 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]
>
> Hm, is "UID" really how they spell "database user name"? Doesn't seem
> terribly consistent with the other field names you show here.
That is extracted directly from the properties file created by the install
process, excepting that the password has been edited.
>
>> [root@accounting-2 ~ (master)]# psql --dbname=idempiere
>> --username=idempiere_dbadmin
>
> psql, by default, is going to try to connect to a Unix socket.
> I wonder if you've got two postmasters on that machine and the
> other one is what's answering TCP port 5432. . .
I see only one master process
[root@accounting-2 ~ (master)]# ps -auwx | grep postgres
postgres 19108 0.0 0.2 177972 30540 - IsJ 11:58 0:00.01 postgres:
idempiere_dbadmin idempiere 127.0.88.1(52228) (postgres)
postgres 19109 0.0 0.2 178608 36876 - IsJ 11:58 0:00.03 postgres:
idempiere_dbadmin idempiere 127.0.88.1(52229) (postgres)
postgres 19110 0.0 0.3 182712 51688 - IsJ 11:58 0:00.09 postgres:
idempiere_dbadmin idempiere 127.0.88.1(52230) (postgres)
postgres 20028 0.0 0.2 178676 37624 - IsJ 12:18 0:00.03 postgres:
idempiere_dbadmin idempiere 127.0.88.1(22758) (postgres)
postgres 20029 0.0 0.2 178728 36784 - IsJ 12:18 0:00.03 postgres:
idempiere_dbadmin idempiere 127.0.88.1(22759) (postgres)
postgres 68949 0.0 0.2 175504 34656 - IsJ Fri18 0:00.85 postgres:
checkpointer (postgres)
postgres 68950 0.0 0.1 175468 23420 - SsJ Fri18 0:00.82 postgres:
background writer (postgres)
postgres 68951 0.0 0.1 175468 23416 - SsJ Fri18 0:01.48 postgres:
walwriter (postgres)
postgres 68952 0.0 0.1 175800 23800 - SsJ Fri18 0:04.95 postgres:
autovacuum launcher (postgres)
postgres 68953 0.0 0.1 32012 14076 - SsJ Fri18 0:18.87 postgres:
stats collector (postgres)
postgres 68954 0.0 0.1 175644 23644 - IsJ Fri18 0:00.08 postgres:
logical replication launcher (postgres)
root 20522 0.0 0.0 11348 2216 2 S+J 12:32 0:00.00 grep
--color=auto postgres
postgres 68947 0.0 0.1 175468 23408 2 SJ Fri18 0:19.13
/usr/local/bin/postgres -D /var/db/postgres/data11
[root@accounting-2 ~ (master)]# service postgresql status
pg_ctl: server is running (PID: 68947)
/usr/local/bin/postgres "-D" "/var/db/postgres/data11"
>. . . You might try
> explicitly saying "--host=localhost" here.
>
> regards, tom lane
>
[root@accounting-2 ~ (master)]# psql --dbname=idempiere
--username=idempiere_dbadmin --host=localhost
Password for user idempiere_dbadmin:
psql (11.8)
Type "help" for help.
idempiere=# select current_schemas(true);
current_schemas
------------------------
{adempiere,pg_catalog}
(1 row)
idempiere=# select uuid_generate_v4();
ERROR: function uuid_generate_v4() does not exist
LINE 1: select uuid_generate_v4();
^
HINT: No function matches the given name and argument types. You might need to
add explicit type casts.
idempiere=# select public.uuid_generate_v4();
uuid_generate_v4
--------------------------------------
5ba19b69-ec8e-4d8e-8968-7c84eccc4351
(1 row)
--
*** 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
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: <b1e2554490a1919e2213d85fc57799cd.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> <1732745.1601914016@sss.pgh.pa.us> <b1e2554490a1919e2213d85fc57799cd.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